|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.gui.table.LazyTreeTableNode
public class LazyTreeTableNode
This class is a default implementation of a TreeTableNode
with
children. All data structures holding the childern are instantiated
lazyly though to allow for less memory consumption when not needed.
Constructor Summary | |
---|---|
LazyTreeTableNode(DefaultColumnTreeTableModel model,
java.lang.Object data)
|
Method Summary | |
---|---|
void |
add(TreeTableNode node)
|
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. |
void |
removeChildAt(int index)
|
void |
setData(java.lang.Object data)
|
void |
sort(java.util.Comparator c)
Sort all children. |
java.lang.String |
toString()
Returns null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyTreeTableNode(DefaultColumnTreeTableModel model, java.lang.Object data)
Method Detail |
---|
public void add(TreeTableNode node)
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 void removeChildAt(int index)
public void setData(java.lang.Object data)
public void sort(java.util.Comparator c)
TreeTableNode
sort
in interface TreeTableNode
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |