|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.dataselectors.dataitems.DisabledNode
public class DisabledNode
A representation of a tree node that can be enabled or disabled.
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 |
---|
protected boolean enabled
Constructor Detail |
---|
public DisabledNode()
public DisabledNode(java.lang.Object userObject)
public DisabledNode(java.lang.Object userObject, boolean allowsChildren)
public DisabledNode(java.lang.Object userObject, boolean allowsChildren, boolean enabled)
Method Detail |
---|
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class javax.swing.tree.DefaultMutableTreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public void setEnabled(boolean enabled)
enabled
- - true if enabledpublic boolean isEnabled()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |