org.bibalex.daf.commongui.datamodels
Class CheckNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.bibalex.daf.commongui.datamodels.CheckNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class CheckNode
extends javax.swing.tree.DefaultMutableTreeNode

Version:
1.0 01/11/99
See Also:
Serialized Form

Field Summary
static int DIG_IN_SELECTION
           
protected  boolean isSelected
           
private  int permissionID
           
protected  int selectionMode
           
static int SINGLE_SELECTION
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
CheckNode()
           
CheckNode(java.lang.Object userObject, boolean allowsChildren, boolean isSelected)
           
CheckNode(java.lang.Object userObject, int permissionID)
           
 
Method Summary
 int getPermID()
           
 int getSelectionMode()
           
 boolean isSelected()
          Determine if the currnet node is checked or not
 void setSelected(boolean isSelected)
           
 void setSelectedSingle(boolean isSelected)
          set only the current selected node.
 void setSelectionMode(int mode)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE_SELECTION

public static final int SINGLE_SELECTION
See Also:
Constant Field Values

DIG_IN_SELECTION

public static final int DIG_IN_SELECTION
See Also:
Constant Field Values

selectionMode

protected int selectionMode

isSelected

protected boolean isSelected

permissionID

private int permissionID
Constructor Detail

CheckNode

public CheckNode()

CheckNode

public CheckNode(java.lang.Object userObject,
                 int permissionID)

CheckNode

public CheckNode(java.lang.Object userObject,
                 boolean allowsChildren,
                 boolean isSelected)
Method Detail

setSelectionMode

public void setSelectionMode(int mode)

getSelectionMode

public int getSelectionMode()

setSelected

public void setSelected(boolean isSelected)

isSelected

public boolean isSelected()
Determine if the currnet node is checked or not

Returns:
boolean

setSelectedSingle

public void setSelectedSingle(boolean isSelected)
set only the current selected node. if it has children, the selection will not propagate

Parameters:
isSelected -

getPermID

public int getPermID()