IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.desktop
Class TreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bycom.ibm.dse.desktop.TreeNode
All Implemented Interfaces:
java.lang.Cloneable, DesktopComponent, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
LeafTreeNode

public class TreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements DesktopComponent

The TreeNode class provides a tree node.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
 TreeNodeData aNodeData
          keeps the instance of the TreeNodeData
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
TreeNode()
          This constructor creates a TreeNode object.
TreeNode(java.lang.Object userObject)
          This constructor creates a TreeNode object.
TreeNode(java.lang.Object userObject, boolean allowsChildren)
          This constructor creates a TreeNode object.
 
Method Summary
 void add(java.lang.Object o)
          Adds a node to the tree.
 TreeNodeData getTreeNodeData()
          Gets the tree node user object.
 void setBackgroundNonSelectionColor(java.lang.Object o)
          Sets the user-object node color of the background when it is not selected.
 void setBackgroundSelectionColor(java.lang.Object o)
          Sets the user-object node color of the background when it is selected.
 void setForegroundNonSelectionColor(java.lang.Object o)
          Sets the user-object node color of the foreground when it is not selected.
 void setForegroundSelectionColor(java.lang.Object o)
          Sets the user-object node color of the foreground when it is selected.
 void setIconName(java.lang.Object o)
          Sets the user-object node icon.
 void setLabel(java.lang.Object o)
          Sets the user-object node title.
 void setName(java.lang.Object o)
          Sets the name.
 void setToolTipText(java.lang.Object o)
          Sets the tool tip text.
 
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, getPathToRoot, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aNodeData

public TreeNodeData aNodeData
keeps the instance of the TreeNodeData

Constructor Detail

TreeNode

public TreeNode()
This constructor creates a TreeNode object.


TreeNode

public TreeNode(java.lang.Object userObject)
This constructor creates a TreeNode object.

Parameters:
userObject - java.lang.Object

TreeNode

public TreeNode(java.lang.Object userObject,
                boolean allowsChildren)
This constructor creates a TreeNode object.

Parameters:
userObject - java.lang.Object
allowsChildren - boolean
Method Detail

add

public void add(java.lang.Object o)
Adds a node to the tree.

Specified by:
add in interface DesktopComponent
Parameters:
o - java.lang.Object

getTreeNodeData

public TreeNodeData getTreeNodeData()
Gets the tree node user object.

Returns:
com.ibm.dse.desktop.TreeNodeData

setBackgroundNonSelectionColor

public void setBackgroundNonSelectionColor(java.lang.Object o)
Sets the user-object node color of the background when it is not selected.

Parameters:
o - java.lang.Object

setBackgroundSelectionColor

public void setBackgroundSelectionColor(java.lang.Object o)
Sets the user-object node color of the background when it is selected.

Parameters:
o - java.lang.Object

setForegroundNonSelectionColor

public void setForegroundNonSelectionColor(java.lang.Object o)
Sets the user-object node color of the foreground when it is not selected.

Parameters:
o - java.lang.Object

setForegroundSelectionColor

public void setForegroundSelectionColor(java.lang.Object o)
Sets the user-object node color of the foreground when it is selected.

Parameters:
o - java.lang.Object

setIconName

public void setIconName(java.lang.Object o)
Sets the user-object node icon.

Parameters:
o - java.lang.Object

setLabel

public void setLabel(java.lang.Object o)
Sets the user-object node title.

Parameters:
o - java.lang.Object

setName

public void setName(java.lang.Object o)
Sets the name.

Parameters:
o - java.lang.Object

setToolTipText

public void setToolTipText(java.lang.Object o)
Sets the tool tip text.

Parameters:
o - java.lang.Object

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005