dsto.dfc.swing.tree
Interface DfcTreeNode

All Superinterfaces:
MutableTreeNode, TreeNode
All Known Implementing Classes:
DefaultDfcTreeNode

public interface DfcTreeNode
extends MutableTreeNode

The node type used in node-based DFC tree models. Amongst other things, it works around Sun's brilliant idea of not providing a getUserObject () method on the MutableTreeNode interface.

Version:
$Revision$
Author:
Matthew Phillips

Method Summary
 DfcTreeNode findChild(Object userObject)
          Find the first child with a matching user object.
 Object getUserObject()
          Get the user object associated with this node.
 boolean isMutable()
          Test if the node can be changed.
 void setUserObject(Object userObject)
          Set the user object associated with this node.
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

isMutable

boolean isMutable()
Test if the node can be changed.


getUserObject

Object getUserObject()
Get the user object associated with this node.


setUserObject

void setUserObject(Object userObject)
Set the user object associated with this node.

Specified by:
setUserObject in interface MutableTreeNode

findChild

DfcTreeNode findChild(Object userObject)
Find the first child with a matching user object.

Returns:
The matching child or null if no match found.


Copyright © 2008 Commonwealth of Australia