public class CheckNode extends JiveTreeNode
Modifier and Type | Field and Description |
---|---|
static int |
DIG_IN_SELECTION
Mode to use if the node should be expaned if selected and if possible.
|
static int |
SINGLE_SELECTION
Mode to use if the node should not expand when selected.
|
DATA_FLAVORS
Constructor and Description |
---|
CheckNode()
Construct an empty node.
|
CheckNode(java.lang.Object userObject)
Creates a new CheckNode with the specified name.
|
CheckNode(java.lang.Object userObject,
boolean allowsChildren,
boolean isSelected)
Constructs a new CheckNode.
|
CheckNode(java.lang.Object userObject,
boolean allowsChildren,
boolean isSelected,
java.lang.String name)
Constructs a new CheckNode.
|
CheckNode(java.lang.String userObject,
boolean allowsChildren,
javax.swing.Icon icon)
Constructs a new CheckNode.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAssociatedObject()
Returns the associated object of this node.
|
java.lang.String |
getFullName()
Returns the full name of the node.
|
int |
getSelectionMode()
Returns the selection mode.
|
boolean |
isSelected()
Returns true if the node is selected.
|
void |
setAssociatedObject(java.lang.Object associatedObject)
Sets an assoicated object for this node.
|
void |
setSelected(boolean isSelected)
Selects or deselects node.
|
void |
setSelectionMode(int mode)
Sets the selection mode.
|
getClosedIcon, getIcon, getOpenIcon, getTransferData, getTransferDataFlavors, hasParent, isDataFlavorSupported, setIcon
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
public static final int SINGLE_SELECTION
public static final int DIG_IN_SELECTION
public CheckNode()
public CheckNode(java.lang.Object userObject)
userObject
- the name to use.public CheckNode(java.lang.Object userObject, boolean allowsChildren, boolean isSelected)
userObject
- the name to use.allowsChildren
- true if it allows children.isSelected
- true if it is to be selected.public CheckNode(java.lang.String userObject, boolean allowsChildren, javax.swing.Icon icon)
userObject
- the name to use.allowsChildren
- true if it allows children.icon
- the icon to use.public CheckNode(java.lang.Object userObject, boolean allowsChildren, boolean isSelected, java.lang.String name)
userObject
- the name to use.allowsChildren
- true if it allows children.isSelected
- true if it is selected.name
- the identifier name.public java.lang.String getFullName()
public void setSelectionMode(int mode)
mode
- the selection mode to use.public int getSelectionMode()
public void setSelected(boolean isSelected)
isSelected
- true if the node should be selected, false otherwise.public boolean isSelected()
public java.lang.Object getAssociatedObject()
getAssociatedObject
in class JiveTreeNode
public void setAssociatedObject(java.lang.Object associatedObject)
setAssociatedObject
in class JiveTreeNode
associatedObject
- the associated object set.