|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cs.ai.kreator.ui.gui.components.models.CheckboxTreeModel.Node
public class CheckboxTreeModel.Node
Inner class representing a Node in the custom tree model.
Constructor Summary | |
---|---|
CheckboxTreeModel.Node(java.lang.Object userData)
Ctor: Generates a new node with the given userData. |
|
CheckboxTreeModel.Node(java.lang.Object userData,
CheckboxTreeModel.Node parent)
Ctor: Generates a new node with the given user-data and parent. |
Method Summary | |
---|---|
void |
addChild(CheckboxTreeModel.Node child)
Adds a child node to this node. |
CheckboxTreeModel.Node |
addChild(java.lang.Object userData)
Adds a child node with the given user-data to this node. |
void |
check(boolean b)
check or uncheck the checkbox of this node (not recursively) |
void |
check(boolean b,
boolean rek)
check or uncheck the checkbox of this node and all children nodes. |
javax.swing.JCheckBox |
getCheckBox()
|
java.util.List<CheckboxTreeModel.Node> |
getChildren()
|
CheckboxTreeModel.Node |
getParent()
|
javax.swing.tree.TreePath |
getPath()
Generates a tree-path (used by JTree component) |
java.lang.Object |
getUserData()
|
void |
removeAllChildren()
Removes all children connected to this node. |
void |
setUserData(java.lang.Object data)
changes the user-data of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckboxTreeModel.Node(java.lang.Object userData)
userData
- user-data of the node.public CheckboxTreeModel.Node(java.lang.Object userData, CheckboxTreeModel.Node parent)
userData
- user-data of the node.parent
- reference to the parent of the node.Method Detail |
---|
public void check(boolean b)
b
- true if the checkbox should be select otherwise false.public void check(boolean b, boolean rek)
b
- true if the checkbox should be select otherwise false.rek
- true means also set checkbox states of children, false means only that node.public CheckboxTreeModel.Node addChild(java.lang.Object userData)
userData
-
public void addChild(CheckboxTreeModel.Node child)
child
- the node which should be added as child.public javax.swing.tree.TreePath getPath()
public void removeAllChildren()
public java.util.List<CheckboxTreeModel.Node> getChildren()
public void setUserData(java.lang.Object data)
data
- new user-data.public java.lang.Object getUserData()
public CheckboxTreeModel.Node getParent()
public javax.swing.JCheckBox getCheckBox()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |