com.sas.dataselectors.calculateditems
Class NodeInfo
com.sas.dataselectors.calculateditems.NodeInfo
All Implemented Interfaces: java.io.Serializable , java.lang.Cloneable , javax.swing.tree.MutableTreeNode , javax.swing.tree.TreeNode
Direct Known Subclasses: LevelNodeInfo , MemberNodeInfo
public class NodeInfo
See Also: Serialized Form
Constructor Summary
NodeInfo ()
Default constructor.
text
protected java.lang.String text
uniqueName
protected java.lang.String uniqueName
expanded
protected boolean expanded
initialized
protected boolean initialized
NodeInfo
public NodeInfo ()
Default constructor.
getText
public java.lang.String getText ()
Returns the text label to displayed for this node.
Returns: the text label to displayed.
getUniqueName
public java.lang.String getUniqueName ()
Returns the unique name that identifies this node.
Returns: the unique name that identifies this node.
isExpanded
public boolean isExpanded ()
Returns the boolean indicating whether this node
should be presented in an expanded state.
Returns: the boolean indicating whether this node
should be presented in an expanded state.
setExpanded
public void setExpanded (boolean expanded)
Sets the boolean indicating whether this node
should be presented in an expanded state.
Parameters: expanded
- the boolean indicating whether this node
should be presented in an expanded state.
toString
public java.lang.String toString ()
Overrides: toString
in class javax.swing.tree.DefaultMutableTreeNode
populateChildren
protected boolean populateChildren ()
Retrieves child information. Retrieval of all information related to the children of this node
is delayed until it is needed by one of the other methods in this class.
Returns: true if the initialization routine completed successfully
children
public java.util.Enumeration children ()
Specified by: children
in interface javax.swing.tree.TreeNode
Overrides: children
in class javax.swing.tree.DefaultMutableTreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt (int childIndex)
Specified by: getChildAt
in interface javax.swing.tree.TreeNode
Overrides: getChildAt
in class javax.swing.tree.DefaultMutableTreeNode
getIndex
public int getIndex (javax.swing.tree.TreeNode node)
Specified by: getIndex
in interface javax.swing.tree.TreeNode
Overrides: getIndex
in class javax.swing.tree.DefaultMutableTreeNode
isLeaf
public boolean isLeaf ()
Specified by: isLeaf
in interface javax.swing.tree.TreeNode
Overrides: isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
remove
public void remove (int index)
Specified by: remove
in interface javax.swing.tree.MutableTreeNode
Overrides: remove
in class javax.swing.tree.DefaultMutableTreeNode
remove
public void remove (javax.swing.tree.MutableTreeNode node)
Specified by: remove
in interface javax.swing.tree.MutableTreeNode
Overrides: remove
in class javax.swing.tree.DefaultMutableTreeNode
removeFromParent
public void removeFromParent ()
Specified by: removeFromParent
in interface javax.swing.tree.MutableTreeNode
Overrides: removeFromParent
in class javax.swing.tree.DefaultMutableTreeNode
setParent
public void setParent (javax.swing.tree.MutableTreeNode node)
Specified by: setParent
in interface javax.swing.tree.MutableTreeNode
Overrides: setParent
in class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration
public java.util.Enumeration breadthFirstEnumeration ()
Overrides: breadthFirstEnumeration
in class javax.swing.tree.DefaultMutableTreeNode
depthFirstEnumeration
public java.util.Enumeration depthFirstEnumeration ()
Overrides: depthFirstEnumeration
in class javax.swing.tree.DefaultMutableTreeNode
getChildAfter
public javax.swing.tree.TreeNode getChildAfter (javax.swing.tree.TreeNode aChild)
Overrides: getChildAfter
in class javax.swing.tree.DefaultMutableTreeNode
getChildBefore
public javax.swing.tree.TreeNode getChildBefore (javax.swing.tree.TreeNode aChild)
Overrides: getChildBefore
in class javax.swing.tree.DefaultMutableTreeNode
getFirstChild
public javax.swing.tree.TreeNode getFirstChild ()
Overrides: getFirstChild
in class javax.swing.tree.DefaultMutableTreeNode
getFirstLeaf
public javax.swing.tree.DefaultMutableTreeNode getFirstLeaf ()
Overrides: getFirstLeaf
in class javax.swing.tree.DefaultMutableTreeNode
getLastChild
public javax.swing.tree.TreeNode getLastChild ()
Overrides: getLastChild
in class javax.swing.tree.DefaultMutableTreeNode
getLastLeaf
public javax.swing.tree.DefaultMutableTreeNode getLastLeaf ()
Overrides: getLastLeaf
in class javax.swing.tree.DefaultMutableTreeNode
getLeafCount
public int getLeafCount ()
Overrides: getLeafCount
in class javax.swing.tree.DefaultMutableTreeNode
getNextLeaf
public javax.swing.tree.DefaultMutableTreeNode getNextLeaf ()
Overrides: getNextLeaf
in class javax.swing.tree.DefaultMutableTreeNode
getNextNode
public javax.swing.tree.DefaultMutableTreeNode getNextNode ()
Overrides: getNextNode
in class javax.swing.tree.DefaultMutableTreeNode
getPreviousLeaf
public javax.swing.tree.DefaultMutableTreeNode getPreviousLeaf ()
Overrides: getPreviousLeaf
in class javax.swing.tree.DefaultMutableTreeNode
getPreviousNode
public javax.swing.tree.DefaultMutableTreeNode getPreviousNode ()
Overrides: getPreviousNode
in class javax.swing.tree.DefaultMutableTreeNode
isNodeChild
public boolean isNodeChild (javax.swing.tree.TreeNode aNode)
Overrides: isNodeChild
in class javax.swing.tree.DefaultMutableTreeNode
postorderEnumeration
public java.util.Enumeration postorderEnumeration ()
Overrides: postorderEnumeration
in class javax.swing.tree.DefaultMutableTreeNode
preorderEnumeration
public java.util.Enumeration preorderEnumeration ()
Overrides: preorderEnumeration
in class javax.swing.tree.DefaultMutableTreeNode
removeAllChildren
public void removeAllChildren ()
Overrides: removeAllChildren
in class javax.swing.tree.DefaultMutableTreeNode
Copyright © 2009 SAS Institute Inc. All Rights Reserved.