|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultTreeSelectionModel com.jidesoft.swing.CheckBoxTreeSelectionModel com.jidesoft.tree.FilterableCheckBoxTreeSelectionModel
public class FilterableCheckBoxTreeSelectionModel
FilterableCheckBoxTreeSelectionModel
is a subclass of CheckBoxTreeSelectionModel
and use in
CheckBoxTree
to keep track of the checked tree paths.
Field Summary |
---|
Fields inherited from class com.jidesoft.swing.CheckBoxTreeSelectionModel |
---|
_pathHasAdded |
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 | |
---|---|
FilterableCheckBoxTreeSelectionModel(TreeModel model)
|
|
FilterableCheckBoxTreeSelectionModel(TreeModel model,
boolean digIn)
|
Method Summary | |
---|---|
protected void |
addSelectionPaths(TreePath[] paths,
boolean needCheckPathSelection)
Add the selection paths. |
protected boolean |
areSiblingsSelected(TreePath path)
tells whether all siblings of given path are selected. |
protected Object |
getChild(Object node,
int i)
Get the child of node in the designated index. |
protected int |
getChildrenCount(Object node)
Get the children count |
protected boolean |
isParentActuallySelected(TreePath path,
TreePath parent)
Check if the parent path is really selected. |
boolean |
isPartiallySelected(TreePath path)
Tests whether there is any unselected node in the subtree of given path. |
void |
removeSelectionPaths(TreePath[] paths)
|
void |
treeStructureChanged(TreeModelEvent e)
|
Methods inherited from class com.jidesoft.swing.CheckBoxTreeSelectionModel |
---|
addSelectionPaths, getModel, isDigIn, isPathSelected, isPathSelected, isRowSelected, isSingleEventMode, notifyPathChange, notifyPathChange, removeSelectionPaths, setBatchMode, setDigIn, setModel, setSelectionPaths, setSingleEventMode, treeNodesChanged, treeNodesInserted, treeNodesRemoved |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterableCheckBoxTreeSelectionModel(TreeModel model)
public FilterableCheckBoxTreeSelectionModel(TreeModel model, boolean digIn)
Method Detail |
---|
protected void addSelectionPaths(TreePath[] paths, boolean needCheckPathSelection)
CheckBoxTreeSelectionModel
addSelectionPaths
in class CheckBoxTreeSelectionModel
paths
- the paths to be addedneedCheckPathSelection
- the flag to indicating if the path selection should be checked to improve performancepublic void removeSelectionPaths(TreePath[] paths)
removeSelectionPaths
in interface TreeSelectionModel
removeSelectionPaths
in class CheckBoxTreeSelectionModel
public boolean isPartiallySelected(TreePath path)
CheckBoxTreeSelectionModel
isPartiallySelected
in class CheckBoxTreeSelectionModel
path
- check if the path is partially selected.
protected boolean isParentActuallySelected(TreePath path, TreePath parent)
CheckBoxTreeSelectionModel
isParentActuallySelected
in class CheckBoxTreeSelectionModel
path
- the original path to be checkedparent
- the parent part which is closest to the original path and is selected
protected boolean areSiblingsSelected(TreePath path)
CheckBoxTreeSelectionModel
areSiblingsSelected
in class CheckBoxTreeSelectionModel
path
- the tree path
protected int getChildrenCount(Object node)
CheckBoxTreeSelectionModel
getChildrenCount
in class CheckBoxTreeSelectionModel
node
- the parent node
protected Object getChild(Object node, int i)
CheckBoxTreeSelectionModel
getChild
in class CheckBoxTreeSelectionModel
node
- the parent nodei
- the child index
public void treeStructureChanged(TreeModelEvent e)
treeStructureChanged
in interface TreeModelListener
treeStructureChanged
in class CheckBoxTreeSelectionModel
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |