|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
weka.gui.ensembleLibraryEditor.tree.CheckBoxNode
public class CheckBoxNode
This class is responsible for implementing the underlying logic of tree nodes representing a single nominal value. This is either going to be true/false values or an enumeration of values defined by the model. Check box nodes are relatively simple in that they are simply toggled on or off by the user indicating whether or not they are to be used.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
CheckBoxNode(java.lang.String name,
boolean selected,
java.lang.String toolTipText)
The constructor initializes the members of this node. |
Method Summary | |
---|---|
java.lang.String |
getName()
gets the name of the parameter value represented by this node which is stored as the node's user object |
boolean |
getSelected()
getter for the node state |
java.lang.String |
getToolTipText()
getter for the tooltip text |
void |
itemStateChanged(java.awt.event.ItemEvent e)
This is the listener that fires when the check box is actually toggled. |
void |
setBoxSelected(boolean newValue)
sets whether the box is selected |
void |
setName(java.lang.String newValue)
sets the name of the parameter value represented by this node and stores it as the node's user object |
void |
setSelected(boolean newValue)
setter for the node state |
void |
setUserObject(java.lang.Object o)
this is a simple filter for the setUserObject method. |
java.lang.String |
toString()
ToString methods prints out the toString method of this nodes user object |
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, 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckBoxNode(java.lang.String name, boolean selected, java.lang.String toolTipText)
name
- the name of this attributeselected
- the initial value of this nodetoolTipText
- the toolTipText to be displayedMethod Detail |
---|
public boolean getSelected()
public void setSelected(boolean newValue)
newValue
- the new selected statepublic void setBoxSelected(boolean newValue)
newValue
- if true the box will be selectedpublic java.lang.String getName()
public void setName(java.lang.String newValue)
newValue
- the new namepublic java.lang.String getToolTipText()
public void setUserObject(java.lang.Object o)
setUserObject
in interface javax.swing.tree.MutableTreeNode
setUserObject
in class javax.swing.tree.DefaultMutableTreeNode
o
- the user objectpublic java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |