public class GenericObjectEditor.GOETreeNode
extends javax.swing.tree.DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAYBE_SUPPORT
color for "maybe support".
|
static java.lang.String |
NO_SUPPORT
color for "no support".
|
Constructor and Description |
---|
GOETreeNode()
Creates a tree node that has no parent and no children, but which allows
children.
|
GOETreeNode(java.lang.Object userObject)
Creates a tree node with no parent, no children, but which allows
children, and initializes it with the specified user object.
|
GOETreeNode(java.lang.Object userObject,
boolean allowsChildren)
Creates a tree node with no parent, no children, initialized with the
specified user object, and that allows children only if specified.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getToolTipText()
Get the tool tip for this node
|
void |
setToolTipText(java.lang.String tip)
Set the tool tip for this node
|
java.lang.String |
toString()
returns a string representation of this treenode.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public static final java.lang.String NO_SUPPORT
public static final java.lang.String MAYBE_SUPPORT
public GOETreeNode()
public GOETreeNode(java.lang.Object userObject)
userObject
- an Object provided by the user that constitutes the
node's datapublic GOETreeNode(java.lang.Object userObject, boolean allowsChildren)
userObject
- an Object provided by the user that constitutes the
node's dataallowsChildren
- if true, the node is allowed to have child nodes --
otherwise, it is always a leaf nodepublic void setToolTipText(java.lang.String tip)
tip
- the tool tip for this nodepublic java.lang.String getToolTipText()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode