|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
edu.northwestern.at.utils.swing.CheckBoxTreeNode
public class CheckBoxTreeNode
Defines a node for a CheckBoxTree.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
CheckBoxTreeNode(java.lang.Object obj)
Create a check box list item from an object. |
|
CheckBoxTreeNode(java.lang.Object obj,
boolean checked)
Create a check box list item from an object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getObject()
Get object. |
java.lang.String |
getText()
Get object text. |
boolean |
isChecked()
Is item checked? |
void |
setChecked(boolean checked)
Set checked status of item. |
java.lang.String |
toString()
Get item text for display conversions. |
| 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 |
| Constructor Detail |
|---|
public CheckBoxTreeNode(java.lang.Object obj,
boolean checked)
obj - List item.checked - True if list item checked. public CheckBoxTreeNode(java.lang.Object obj)
obj - List item.
The item is initially set to not checked.
| Method Detail |
|---|
public void setChecked(boolean checked)
checked - True to select item,
false to unselect. public boolean isChecked()
public java.lang.Object getObject()
public java.lang.String getText()
public java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||