Class CheckTreeSelectionModel
java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.biopax.gui.CheckTreeSelectionModel
- All Implemented Interfaces:
Serializable
,Cloneable
,TreeSelectionModel
public class CheckTreeSelectionModel extends DefaultTreeSelectionModel
You can ask the the above selection model whether B is selected as below:
checkSelectionModel.isPathSelected(getPath(B), true); // the second argument
tells that selection is to be digged.
- Author:
- ricardo
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
SELECTION_MODE_PROPERTY
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
Modifier and Type Method Description void
addSelectionPaths(TreePath[] paths)
boolean
isPartiallySelected(TreePath path)
boolean
isPathSelected(TreePath path, boolean dig)
void
removeSelectionPaths(TreePath[] paths)
void
setSelectionPaths(TreePath[] pPaths)
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, clearSelection, clone, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString
-
Constructor Details
-
CheckTreeSelectionModel
-
-
Method Details
-
isPartiallySelected
-
isPathSelected
-
setSelectionPaths
- Specified by:
setSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
setSelectionPaths
in classDefaultTreeSelectionModel
-
addSelectionPaths
- Specified by:
addSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
addSelectionPaths
in classDefaultTreeSelectionModel
-
removeSelectionPaths
- Specified by:
removeSelectionPaths
in interfaceTreeSelectionModel
- Overrides:
removeSelectionPaths
in classDefaultTreeSelectionModel
-