|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.datanode.tree.TreeModelNode
public class TreeModelNode
Object used to store information about items in the DataNodeTreeModel
hierarchy. This plays a role somewhat similar to that which
TreeNode
plays for
DefaultTreeModel
, but also takes care of
some of the duties related to asynhronous expansion of the node.
You should generally synchronize on a TreeModelNode when accessing it in a way which might modify it or be sensitive to modification of it.
To create a TreeModelNode, use the
DataNodeTreeModel.makeModelNode(uk.ac.starlink.datanode.nodes.DataNode, uk.ac.starlink.datanode.tree.TreeModelNode)
method of DataNodeTreeModel.
Method Summary | |
---|---|
List |
getChildren()
Returns the list which contains the children. |
DataNode |
getDataNode()
Returns the DataNode managed by this TreeModelNode. |
NodeExpander |
getExpander()
Returns the object which is currently in charge of locating this nodes children. |
TreeModelNode |
getParent()
Returns the parent of this node. |
void |
setExpander(NodeExpander expander)
Installs a NodeExpander object to take charge of locating this node's children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public List getChildren()
public TreeModelNode getParent()
public DataNode getDataNode()
public void setExpander(NodeExpander expander)
It is the responsibility of the calling code to ensure that the new expander starts doing its expansion work.
expander
- new node expanderpublic NodeExpander getExpander()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |