|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode org.jivesoftware.spark.component.JiveTreeNode org.jivesoftware.spark.component.CheckNode
public class CheckNode
Creates one tree node with a check box.
Field Summary | |
---|---|
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. |
Fields inherited from class org.jivesoftware.spark.component.JiveTreeNode |
---|
DATA_FLAVORS |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jivesoftware.spark.component.JiveTreeNode |
---|
getClosedIcon, getIcon, getOpenIcon, getTransferData, getTransferDataFlavors, hasParent, isDataFlavorSupported, setIcon |
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, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SINGLE_SELECTION
public static final int DIG_IN_SELECTION
Constructor Detail |
---|
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.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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |