|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--com.glaivestone.javax.swing.tree.DefaultMutableTreeNodeX
A mutable tree node which supports a tool tip.
Field Summary |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
EMPTY_ENUMERATION |
Constructor Summary | |
DefaultMutableTreeNodeX()
Creates a tree node that has no parent and no children, but which allows children. |
|
DefaultMutableTreeNodeX(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. |
|
DefaultMutableTreeNodeX(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 ifspecified. |
|
DefaultMutableTreeNodeX(java.lang.Object userObject,
boolean allowsChildren,
java.lang.String toolTip)
Creates a tree node with no parent, no children, initialized with the specified user object and tool tip, and that allows children only ifspecified. |
|
DefaultMutableTreeNodeX(java.lang.Object userObject,
java.lang.String toolTip)
Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object and tool tip. |
Method Summary | |
java.lang.String |
getToolTipText()
Return the tool tip for this node. |
void |
setToolTipText(java.lang.String toolTip)
Set the tool tip for this node. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
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, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultMutableTreeNodeX()
public DefaultMutableTreeNodeX(java.lang.Object userObject)
userObject
- an Object provided by the user that constitutes
the node's datapublic DefaultMutableTreeNodeX(java.lang.Object userObject, java.lang.String toolTip)
userObject
- an Object provided by the user that constitutes
the node's datapublic DefaultMutableTreeNodeX(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 DefaultMutableTreeNodeX(java.lang.Object userObject, boolean allowsChildren, java.lang.String toolTip)
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 nodeMethod Detail |
public java.lang.String getToolTipText()
getToolTipText
in interface ToolTipTextAccessor
public void setToolTipText(java.lang.String toolTip)
|
GFL 1.1 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |