|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
com.citra.component.CheckBoxTreeSelectionModel
public class CheckBoxTreeSelectionModel
CheckBoxTreeSelectionModel is the default selection model for a CheckBoxTree.
Field Summary | |
---|---|
static int |
PARTIALLY_SELECTED
defines a partially selected state |
protected boolean |
partialSelection
flag indicating whether partial selection is on/off |
static int |
SELECTED
defines a selected state |
protected TreeModel |
treeModel
the assigned tree model |
static int |
UNSELECTED
defines an unselected state |
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel |
---|
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode |
Fields inherited from interface javax.swing.tree.TreeSelectionModel |
---|
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION |
Constructor Summary | |
---|---|
CheckBoxTreeSelectionModel(TreeModel treeModel)
Constructs a CheckBoxTreeSelectionModel. |
Method Summary | |
---|---|
void |
addSelectionPath(TreePath path)
Adds path to the current selection. |
TreeModel |
getModel()
Retrieves the tree model. |
boolean |
getPartialSelection()
Determines whether the checkbox tree will use partial selection. |
int |
getPathSelectionState(TreePath path)
Returns the selection state of the specified path. |
void |
removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
setModel(TreeModel treeModel)
Assigns the tree model. |
void |
setPartialSelection(boolean partialSelection)
Turns partial selection on/off. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TreeModel treeModel
protected boolean partialSelection
public static final int SELECTED
public static final int UNSELECTED
public static final int PARTIALLY_SELECTED
Constructor Detail |
---|
public CheckBoxTreeSelectionModel(TreeModel treeModel)
Method Detail |
---|
public void addSelectionPath(TreePath path)
path
is null.
addSelectionPath
in interface TreeSelectionModel
addSelectionPath
in class DefaultTreeSelectionModel
path
- the new path to add to the current selectionpublic TreeModel getModel()
public boolean getPartialSelection()
public int getPathSelectionState(TreePath path)
path
- the path whose selection state is returned
public void removeSelectionPath(TreePath path)
path
is null.
removeSelectionPath
in interface TreeSelectionModel
removeSelectionPath
in class DefaultTreeSelectionModel
path
- the path to remove from the selectionpublic void setModel(TreeModel treeModel)
treeModel
- the model to assignpublic void setPartialSelection(boolean partialSelection)
partialSelection
- true if partial selection is enabled, false otherwise
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |