|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swing.tree.DefaultDfcTreeModel.Node
public static final class DefaultDfcTreeModel.Node
A node in the tree. Can be used (via getRootNode () and getNodeForEntry ()) as a slightly faster way to scan through the tree than the TreeModel interface.
Constructor Summary | |
---|---|
protected |
DefaultDfcTreeModel.Node()
Create a root node. |
protected |
DefaultDfcTreeModel.Node(Object entry)
Create a node with associated view entry. |
Method Summary | |
---|---|
protected int |
add(DefaultDfcTreeModel.Node child)
|
protected void |
add(DefaultDfcTreeModel.Node child,
int index)
Add a child node at its appropriate position in the child list. |
DefaultDfcTreeModel.Node |
getChild(int index)
|
DefaultDfcTreeModel.Node |
getChild(Object childEntry)
Get the first child with matching entry, or null if no such child exists. |
int |
getChildCount()
|
Object |
getEntry()
The entry associated with this node. |
int |
getIndex()
The index of this node in parent. |
int |
getIndexOfChild(DefaultDfcTreeModel.Node child)
|
int |
getIndexOfEntry(Object childEntry)
Get index of child node with matching entry, or -1 if none found. |
DefaultDfcTreeModel.Node |
getParent()
|
protected boolean |
remove(DefaultDfcTreeModel.Node child)
|
protected DefaultDfcTreeModel.Node |
remove(int index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultDfcTreeModel.Node()
protected DefaultDfcTreeModel.Node(Object entry)
Method Detail |
---|
public DefaultDfcTreeModel.Node getParent()
public int getIndex()
public Object getEntry()
protected void add(DefaultDfcTreeModel.Node child, int index)
protected int add(DefaultDfcTreeModel.Node child)
protected boolean remove(DefaultDfcTreeModel.Node child)
protected DefaultDfcTreeModel.Node remove(int index)
public DefaultDfcTreeModel.Node getChild(Object childEntry)
public DefaultDfcTreeModel.Node getChild(int index)
public int getChildCount()
public int getIndexOfChild(DefaultDfcTreeModel.Node child)
public int getIndexOfEntry(Object childEntry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |