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, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNewTreeNodeaddChild, insertChild, removeChild, setParentcanExpand, collapse, expand, getChild, getChildCount, getChildren, getParent, indexOfChild, isLeafprotected Object myData
protected void setData(Object data)
public Object getData()
getData in interface DataTreeNodepublic boolean containsData(Object data)
DataTreeNodecontainsData in interface DataTreeNodedata - the data to check.public void rebuildTree()
DataTreeNoderebuildTree in interface DataTreeNodepublic DataTreeNode getChildDataTreeNode(Object data)
DataTreeNodegetChildDataTreeNode in interface DataTreeNodedata - the data to look for.