com.glaivestone.javax.swing.tree
Class DefaultMutableTreeNodeX

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--com.glaivestone.javax.swing.tree.DefaultMutableTreeNodeX
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, ToolTipTextAccessor, javax.swing.tree.TreeNode

public class DefaultMutableTreeNodeX
extends javax.swing.tree.DefaultMutableTreeNode
implements ToolTipTextAccessor

A mutable tree node which supports a tool tip.

Author:
Deb Lewis
, Gary Gregroy
See Also:
Serialized Form

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

DefaultMutableTreeNodeX

public DefaultMutableTreeNodeX()
Creates a tree node that has no parent and no children, but which allows children.


DefaultMutableTreeNodeX

public 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.

Parameters:
userObject - an Object provided by the user that constitutes the node's data

DefaultMutableTreeNodeX

public 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.

Parameters:
userObject - an Object provided by the user that constitutes the node's data

DefaultMutableTreeNodeX

public 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.

Parameters:
userObject - an Object provided by the user that constitutes the node's data
allowsChildren - if true, the node is allowed to have child nodes -- otherwise, it is always a leaf node

DefaultMutableTreeNodeX

public 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.

Parameters:
userObject - an Object provided by the user that constitutes the node's data
allowsChildren - if true, the node is allowed to have child nodes -- otherwise, it is always a leaf node
Method Detail

getToolTipText

public java.lang.String getToolTipText()
Return the tool tip for this node.

Specified by:
getToolTipText in interface ToolTipTextAccessor

setToolTipText

public void setToolTipText(java.lang.String toolTip)
Set the tool tip for this node.


GFL 1.1 API