Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
Method Summary | |
void | addTreeModelListener(TreeModelListener l)
|
Object | getChild(Object parent,
int index)
|
int | getChildCount(Object parent)
|
int | getIndexOfChild(Object parent,
Object child)
|
Object | getRoot()
|
boolean | isLeaf(Object node)
|
void | removeTreeModelListener(TreeModelListener l)
|
void | valueForPathChanged(TreePath path,
Object newValue)
|
Method Detail |
public Object getRoot()
public Object getChild(Object parent, int index)
parent
- a node in the tree, obtained from this data source
public int getChildCount(Object parent)
parent
- a node in the tree, obtained from this data source
public boolean isLeaf(Object node)
node
- a node in the tree, obtained from this data source
public void valueForPathChanged(TreePath path, Object newValue)
path
- path to the node that the user has altered.
newValue
- the new value from the TreeCellEditor.
public int getIndexOfChild(Object parent, Object child)
public void addTreeModelListener(TreeModelListener l)
l
- the listener to add
public void removeTreeModelListener(TreeModelListener l)
l
- the listener to remove
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |