public abstract class DataTreeNodeObject extends MutableTreeNodeObject implements DataTreeNode
Modifier and Type | Field and Description |
---|---|
protected Object |
myData |
children, parent
Constructor and Description |
---|
DataTreeNodeObject() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsData(Object data)
Checks if this DataTreeNode contains the specified data.
|
DataTreeNode |
getChildDataTreeNode(Object data)
Find the DataTreeNode for the specified data.
|
Object |
getData() |
protected abstract Iterator |
getDataChildren(Object data) |
void |
rebuildTree()
The data for the DataTreeNode must already be set before calling this.
|
protected void |
setData(Object data) |
addChild, canExpand, clearChildren, collapse, expand, getChild, getChildCount, getChildren, getParent, indexOfChild, insertChild, isLeaf, removeChild, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNewTreeNode
addChild, insertChild, removeChild, setParent
canExpand, collapse, expand, getChild, getChildCount, getChildren, getParent, indexOfChild, isLeaf
protected Object myData
protected void setData(Object data)
public Object getData()
getData
in interface DataTreeNode
public boolean containsData(Object data)
DataTreeNode
containsData
in interface DataTreeNode
data
- the data to check.public void rebuildTree()
DataTreeNode
rebuildTree
in interface DataTreeNode
public DataTreeNode getChildDataTreeNode(Object data)
DataTreeNode
getChildDataTreeNode
in interface DataTreeNode
data
- the data to look for.