Class CheckNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- repast.simphony.dataLoader.ui.wizard.builder.CheckNode
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,MutableTreeNode
,TreeNode
- Direct Known Subclasses:
AgentLayerCheckNode
,NetworkCheckNode
public abstract class CheckNode extends DefaultMutableTreeNode implements Comparable
Tree node with a selected checkbox like quality.- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:24:11 $
- Author:
- Nick Collier
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckNode.State
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_DESELECTED
static int
ALL_SELECTED
protected boolean
cascadeSelection
protected boolean
isSelected
static int
MIXED
static int
NO_CHILDREN
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object o)
abstract Icon
getIcon()
org.piccolo2d.PLayer
getLayer()
CheckNode.State
getTreeState()
boolean
isCascadeSelection()
boolean
isSelected()
void
setCascadeSelection(boolean cascadeSelection)
void
setSelected(boolean selected)
void
sort(Comparator comparator)
-
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
-
-
-
-
Field Detail
-
NO_CHILDREN
public static final int NO_CHILDREN
- See Also:
- Constant Field Values
-
ALL_SELECTED
public static final int ALL_SELECTED
- See Also:
- Constant Field Values
-
ALL_DESELECTED
public static final int ALL_DESELECTED
- See Also:
- Constant Field Values
-
MIXED
public static final int MIXED
- See Also:
- Constant Field Values
-
isSelected
protected boolean isSelected
-
cascadeSelection
protected boolean cascadeSelection
-
-
Constructor Detail
-
CheckNode
public CheckNode(String title, org.piccolo2d.PLayer layer, boolean isSelected)
-
-
Method Detail
-
isCascadeSelection
public boolean isCascadeSelection()
-
setCascadeSelection
public void setCascadeSelection(boolean cascadeSelection)
-
isSelected
public boolean isSelected()
-
getTreeState
public CheckNode.State getTreeState()
-
setSelected
public void setSelected(boolean selected)
-
sort
public void sort(Comparator comparator)
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
-
getLayer
public org.piccolo2d.PLayer getLayer()
-
getIcon
public abstract Icon getIcon()
-
-