public class CheckBoxTreeObject extends DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
protected String |
label |
protected boolean |
selected |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
CheckBoxTreeObject()
Creates a new instance of CheckBoxTreeObject
|
CheckBoxTreeObject(String label,
boolean selected)
Creates a new instance of CheckBoxTreeObject
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Getter for property label.
|
boolean |
isSelected()
Getter for property selecetd.
|
void |
setLabel(String label)
Setter for property label.
|
void |
setSelected(boolean selected)
Setter for property selected.
|
void |
switchSelected() |
String |
toString() |
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
protected String label
protected boolean selected
public CheckBoxTreeObject(String label, boolean selected)
public CheckBoxTreeObject()
public void switchSelected()
public String toString()
toString
in class DefaultMutableTreeNode
public boolean isSelected()
public void setSelected(boolean selected)
selected
- New value of property selected.public String getLabel()
public void setLabel(String label)
label
- New value of property label.Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.