Java javax.swing.tree TreeModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.tree TreeModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.tree TreeModel.

The text is from its open source code.

Implementation

javax.swing.tree.TreeModel has the following implementations.
Click this link to see all its implementation.

Method

voidaddTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes.
ObjectgetChild(Object parent, int index)
Returns the child of parent at index index in the parent's child array.
intgetChildCount(Object parent)
Returns the number of children of parent.
intgetIndexOfChild(Object parent, Object child)
Returns the index of child in parent.
ObjectgetRoot()
Returns the root of the tree.
booleanisLeaf(Object node)
Returns true if node is a leaf.
voidvalueForPathChanged(TreePath path, Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue.