|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopointng.tree.DefaultMutableTreeNode
com.sptci.epng.TreeNode<S>
public class TreeNode<S>
A genericised subclass of DefaultMutableTreeNode.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class echopointng.tree.DefaultMutableTreeNode |
|---|
DefaultMutableTreeNode.BreadthFirstEnumeration, DefaultMutableTreeNode.PathBetweenNodesEnumeration, DefaultMutableTreeNode.PostorderEnumeration, DefaultMutableTreeNode.PreorderEnumeration |
| Field Summary | |
|---|---|
protected boolean |
initialised
A flag used to indicate that this node is uninitialised. |
| Fields inherited from class echopointng.tree.DefaultMutableTreeNode |
|---|
actionCommand, allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
TreeNode()
Creates a tree node that has no parent and no children, but which allows children. |
|
TreeNode(S userObject)
Creates a tree node with no parent, no children, but which allows children, and initialises it with the specified user object. |
|
TreeNode(S userObject,
boolean allowsChildren)
Creates a tree node with no parent, no children, initialised with the specified user object, and that allows children only if specified. |
|
| Method Summary | |
|---|---|
S |
getUserObject()
Returns the underlying data object represented by this node. |
void |
setUserObject(Object userObject)
Sets the underlying data object represented by this node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean initialised
DefaultMutableTreeNode.getChildCount() and
set accordingly.
| Constructor Detail |
|---|
public TreeNode()
public TreeNode(S userObject)
userObject - The underlying object represented by this node.
public TreeNode(S userObject,
boolean allowsChildren)
userObject - The underlying object represented by this node.allowsChildren - Indicates whether this node allows children or not.| Method Detail |
|---|
public S getUserObject()
getUserObject in class DefaultMutableTreeNode
public void setUserObject(Object userObject)
throws IllegalArgumentException
setUserObject in interface MutableTreeNodesetUserObject in class DefaultMutableTreeNodeuserObject - The data object to represent.
IllegalArgumentException - If the specified userObject does not
match the type for this node.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||