|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.gui.table.DefaultTreeTableNode
public class DefaultTreeTableNode
This class is a default implementation of a TreeTableNode
with
children.
Constructor Summary | |
---|---|
DefaultTreeTableNode(DefaultColumnTreeTableModel model,
java.lang.Object data)
|
Method Summary | |
---|---|
void |
add(TreeTableNode node)
|
void |
changed()
|
void |
changedChildAt(int index)
|
java.util.Iterator |
children()
Returns an Iterator over all child nodes. |
java.lang.Object |
getChildAt(int index)
Returns the child node at index . |
int |
getChildCount()
Returns the number of children of the node. |
java.lang.Object |
getData()
Returns the data object that is held by this node. |
int |
getIndexOfChildByData(java.lang.Object data)
Returns the child that stores data . |
DefaultColumnTreeTableModel |
getModel()
|
void |
removeChildAt(int index)
|
void |
sort(java.util.Comparator c)
Sort all children. |
java.lang.String |
toString()
Returns the data.toString() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTreeTableNode(DefaultColumnTreeTableModel model, java.lang.Object data)
Method Detail |
---|
public void add(TreeTableNode node)
public void changed()
public void changedChildAt(int index)
public java.util.Iterator children()
public int getIndexOfChildByData(java.lang.Object data)
data
.
public java.lang.Object getChildAt(int index)
index
.
getChildAt
in interface TreeTableNode
public int getChildCount()
getChildCount
in interface TreeTableNode
public java.lang.Object getData()
TreeTableNode
getData
in interface TreeTableNode
public DefaultColumnTreeTableModel getModel()
public void removeChildAt(int index)
public void sort(java.util.Comparator c)
TreeTableNode
sort
in interface TreeTableNode
public java.lang.String toString()
data.toString()
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |