com.metamatrix.console.ui.tree
Class SortableChildrenNode
java.lang.Object
com.metamatrix.toolbox.ui.widget.tree.DefaultTreeNode
com.metamatrix.console.ui.tree.SortableChildrenNode
- All Implemented Interfaces:
- PropertiedObject, TreeNode, java.lang.Cloneable, java.lang.Comparable
public class SortableChildrenNode
- extends DefaultTreeNode
The SortableChildrenNode
is a tree node whose children will be sorted
based on their toString
implementation.
- Since:
- Golden Gate
- Version:
- 1.0
- Author:
- Dan Florian
Constructor Summary |
SortableChildrenNode(java.lang.Object theUserObject)
Constructs a tree node whose children will be sorted. |
SortableChildrenNode(java.lang.String theName,
java.lang.Object theUserObject)
Constructs a tree node whose children will be sorted. |
Method Summary |
int |
addChild(java.lang.Object theChildNode)
Adds the given child tree node in the proper sorted position. |
Methods inherited from class com.metamatrix.toolbox.ui.widget.tree.DefaultTreeNode |
addChild, addChildren, addChildren, clone, compareTo, contains, createChildList, equals, exists, getChild, getChildCount, getChildIndex, getChildren, getContent, getFullName, getIterator, getListIterator, getName, getNamespace, getParent, getRoot, getRoots, getSeparator, getSeparatorChar, getType, initializeDefaultTreeNode, isDescendentOf, isEmpty, isModified, isRoot, removeAllChildren, removeChild, removeChild, setContent, setName |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortableChildrenNode
public SortableChildrenNode(java.lang.Object theUserObject)
- Constructs a tree node whose children will be sorted.
- Parameters:
theUserObject
- the user object
SortableChildrenNode
public SortableChildrenNode(java.lang.String theName,
java.lang.Object theUserObject)
- Constructs a tree node whose children will be sorted.
- Parameters:
theName
- the text used by the toString
methodtheUserObject
- the user object
addChild
public int addChild(java.lang.Object theChildNode)
- Adds the given child tree node in the proper sorted position.
- Overrides:
addChild
in class DefaultTreeNode
- Parameters:
theChildNode
- the child node being addedthe
- index the child node was added at
Copyright © 2009. All Rights Reserved.