com.sas.swing.visuals.dataselectors.dataitems
Class DisabledNode

com.sas.swing.visuals.dataselectors.dataitems.DisabledNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class DisabledNode

A representation of a tree node that can be enabled or disabled.

Since:
3.1
See Also:
Serialized Form

Field Summary
protected  boolean enabled
          Indicates the enabled status of the node
 
Constructor Summary
DisabledNode()
           
DisabledNode(java.lang.Object userObject)
           
DisabledNode(java.lang.Object userObject, boolean allowsChildren)
           
DisabledNode(java.lang.Object userObject, boolean allowsChildren, boolean enabled)
           
 
Method Summary
 int getChildCount()
          Returns super.getChildCount if the node is enabled, 0 if disabled.
 boolean isEnabled()
          Returns the enabled status of the node
 boolean isLeaf()
          Returns true if the node has no child nodes
 void setEnabled(boolean enabled)
          Sets the enabled status of the node
 

Field Detail

enabled

protected boolean enabled
Indicates the enabled status of the node

Constructor Detail

DisabledNode

public DisabledNode()

DisabledNode

public DisabledNode(java.lang.Object userObject)

DisabledNode

public DisabledNode(java.lang.Object userObject,
                    boolean allowsChildren)

DisabledNode

public DisabledNode(java.lang.Object userObject,
                    boolean allowsChildren,
                    boolean enabled)
Method Detail

getChildCount

public int getChildCount()
Returns super.getChildCount if the node is enabled, 0 if disabled.

Specified by:
getChildCount in interface javax.swing.tree.TreeNode
Overrides:
getChildCount in class javax.swing.tree.DefaultMutableTreeNode

isLeaf

public boolean isLeaf()
Returns true if the node has no child nodes

Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class javax.swing.tree.DefaultMutableTreeNode

setEnabled

public void setEnabled(boolean enabled)
Sets the enabled status of the node

Parameters:
enabled - - true if enabled

isEnabled

public boolean isEnabled()
Returns the enabled status of the node

Returns:
true if enabled



Copyright © 2009 SAS Institute Inc. All Rights Reserved.