***  This class is subject to change   ***

com.sas.workspace
Class AbstractDesigner.cAbstractDesignerTreeNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--com.sas.workspace.AbstractDesigner.cAbstractDesignerTreeNode
All Implemented Interfaces:
Direct Known Subclasses:
AbstractDesigner.cAbstractDesignerFolderNode, AbstractDesigner.cAbstractDesignerPluginNode, AbstractDesigner.cAbstractDesignerRootNode
Enclosing class:
AbstractDesigner

public class AbstractDesigner.cAbstractDesignerTreeNode
extends DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
protected  boolean m_bHasExpanded
           
protected  boolean m_bIsEditable
           
protected  boolean m_bIsExpanded
           
protected  Icon m_icon
           
protected  String m_sName
           
protected  String m_toolTip
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
AbstractDesigner.cAbstractDesignerTreeNode(String sName, String sToolTip)
          Constructs a tree node
 
Method Summary
 void addChildren()
          Adds children to the node.
 AbstractDesigner.cAbstractDesignerTreeNode createChild(String sName)
          Creates a child node for the given string.
 Icon getIcon()
           
 String getName()
          Gets the name of the node.
 String getToolTip()
          Gets the tooltip to be used for a node.
 boolean hasExpanded()
          Returns whether the node has ever been expanded.
 boolean isEditable()
          Returns whether the node is editable
 boolean isExpanded()
          Returns the expanded state of this node
 void setHasExpanded(boolean bHasExpanded)
          Sets whether the node has ever been expanded
 void setIsEditable(boolean bIsEditable)
          Sets whether the node is editable
 void setIsExpanded(boolean bIsExpanded)
          Sets the expanded state of the node to the specified boolean value
 void setToolTip(String toolTip)
          Sets the tooltip to be used for a node.
 String toString()
          Returns a string that represents 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, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_bIsEditable

protected boolean m_bIsEditable

m_bIsExpanded

protected boolean m_bIsExpanded

m_bHasExpanded

protected boolean m_bHasExpanded

m_sName

protected String m_sName

m_icon

protected Icon m_icon

m_toolTip

protected String m_toolTip
Constructor Detail

AbstractDesigner.cAbstractDesignerTreeNode

public AbstractDesigner.cAbstractDesignerTreeNode(String sName,
                                                  String sToolTip)
Constructs a tree node
Parameters:
sName - name of the node
Method Detail

getName

public String getName()
Gets the name of the node.
Returns:
the name of the node.

getIcon

public Icon getIcon()

getToolTip

public String getToolTip()
Gets the tooltip to be used for a node.
Returns:
the tooltip for the node.

setToolTip

public void setToolTip(String toolTip)
Sets the tooltip to be used for a node. -jyc 9.14

hasExpanded

public boolean hasExpanded()
Returns whether the node has ever been expanded.
Returns:
true if the node has been expanded, false otherwise

setHasExpanded

public void setHasExpanded(boolean bHasExpanded)
Sets whether the node has ever been expanded
Parameters:
bHasExpanded - true if the node has been expanded, false otherwise

isExpanded

public boolean isExpanded()
Returns the expanded state of this node
Returns:
true if the node is expanded, false otherwise

setIsExpanded

public void setIsExpanded(boolean bIsExpanded)
Sets the expanded state of the node to the specified boolean value
Parameters:
bHasExpanded - true if the node is expanded, false otherwise

isEditable

public boolean isEditable()
Returns whether the node is editable
Returns:
true if the node is editable, false otherwise

setIsEditable

public void setIsEditable(boolean bIsEditable)
Sets whether the node is editable
Parameters:
bIsEditable - true if the node is editable, false otherwise

addChildren

public void addChildren()
Adds children to the node. This method is called by the WorkspaceTree when a node is to be expanded. The base node class has no way of adding children.

toString

public String toString()
Returns a string that represents this node. The string returned is the name of the metadata object that this node represents if the node is not a root node. If the node is a root node, the string returned is the root node name.
Overrides:
toString in class DefaultMutableTreeNode
Returns:
a string representation of the node

createChild

public AbstractDesigner.cAbstractDesignerTreeNode createChild(String sName)
Creates a child node for the given string.
Parameters:
sName - the name of the child node

***  This class is subject to change   ***



Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 15:46:53