|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tree Model.
Method Summary | |
void |
addTreeModelListener(TreeModelListener listener)
Adds tree mode listener. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
Returns child of the specified parent at specified index. |
int |
getChildCount(java.lang.Object parent)
Returns the number of children of specified parent. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
Returns index of child of specified parent. |
java.lang.Object |
getRoot()
Returns root. |
boolean |
isLeaf(java.lang.Object node)
Returns true if node is leaf. |
void |
removeTreeModelListener(TreeModelListener listener)
Removes tree mode listener. |
void |
valueForPathChanged(TreePath path,
java.lang.Object value)
Sets new value for the specified node. |
Method Detail |
public java.lang.Object getRoot()
public java.lang.Object getChild(java.lang.Object parent, int index)
parent
- the parentindex
- the index
public int getChildCount(java.lang.Object parent)
parent
- the parent
public boolean isLeaf(java.lang.Object node)
node
- the node
public void valueForPathChanged(TreePath path, java.lang.Object value)
path
- the path to the node that should be modifiedvalue
- the new valuepublic int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
parent
- the parentchild
- the child
public void addTreeModelListener(TreeModelListener listener)
listener
- the tree mode listenerpublic void removeTreeModelListener(TreeModelListener listener)
listener
- the tree mode listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |