Package com.tagtraum.core.swing
Class CheckTreeSelectionModel
- java.lang.Object
-
- javax.swing.tree.DefaultTreeSelectionModel
-
- com.tagtraum.core.swing.CheckTreeSelectionModel
-
- All Implemented Interfaces:
Serializable
,Cloneable
,TreeSelectionModel
public class CheckTreeSelectionModel extends DefaultTreeSelectionModel
CheckTreeSelectionModel.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description CheckTreeSelectionModel(TreeModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionPaths(TreePath[] paths)
boolean
isPartiallySelected(TreePath path)
boolean
isPathSelected(TreePath path, boolean dig)
tells whether given path is selected.void
removeSelectionPaths(TreePath[] paths)
void
setSelectionPaths(TreePath[] pPaths)
-
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex
-
-
-
-
Constructor Detail
-
CheckTreeSelectionModel
public CheckTreeSelectionModel(TreeModel model)
-
-
Method Detail
-
isPartiallySelected
public boolean isPartiallySelected(TreePath path)
-
isPathSelected
public boolean isPathSelected(TreePath path, boolean dig)
tells whether given path is selected.- Parameters:
dig
- if dig is true, then a path is assumed to be selected, if one of its ancestor is selected.
-
setSelectionPaths
public void setSelectionPaths(TreePath[] pPaths)
- Specified by:
setSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
setSelectionPaths
in classDefaultTreeSelectionModel
-
addSelectionPaths
public void addSelectionPaths(TreePath[] paths)
- Specified by:
addSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
addSelectionPaths
in classDefaultTreeSelectionModel
-
removeSelectionPaths
public void removeSelectionPaths(TreePath[] paths)
- Specified by:
removeSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
removeSelectionPaths
in classDefaultTreeSelectionModel
-
-