Package gov.nih.mipav.view
Class CheckTreeManager.CheckTreeSelectionModel
- java.lang.Object
-
- javax.swing.tree.DefaultTreeSelectionModel
-
- gov.nih.mipav.view.CheckTreeManager.CheckTreeSelectionModel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.TreeSelectionModel
- Enclosing class:
- CheckTreeManager
public class CheckTreeManager.CheckTreeSelectionModel extends javax.swing.tree.DefaultTreeSelectionModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.tree.TreeModel
model
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionPaths(javax.swing.tree.TreePath[] paths)
private boolean
areSiblingsSelected(javax.swing.tree.TreePath path)
private boolean
isDescendant(javax.swing.tree.TreePath path1, javax.swing.tree.TreePath path2)
boolean
isPartiallySelected(javax.swing.tree.TreePath path)
boolean
isPathSelected(javax.swing.tree.TreePath path, boolean dig)
void
removeSelectionPaths(javax.swing.tree.TreePath[] paths)
void
setSelectionPaths(javax.swing.tree.TreePath[] pPaths)
private void
toggleRemoveSelection(javax.swing.tree.TreePath path)
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
model
private javax.swing.tree.TreeModel model
-
-
Method Detail
-
isPartiallySelected
public boolean isPartiallySelected(javax.swing.tree.TreePath path)
-
isPathSelected
public boolean isPathSelected(javax.swing.tree.TreePath path, boolean dig)
-
isDescendant
private boolean isDescendant(javax.swing.tree.TreePath path1, javax.swing.tree.TreePath path2)
-
setSelectionPaths
public void setSelectionPaths(javax.swing.tree.TreePath[] pPaths)
- Specified by:
setSelectionPaths
in interfacejavax.swing.tree.TreeSelectionModel
- Overrides:
setSelectionPaths
in classjavax.swing.tree.DefaultTreeSelectionModel
-
addSelectionPaths
public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
- Specified by:
addSelectionPaths
in interfacejavax.swing.tree.TreeSelectionModel
- Overrides:
addSelectionPaths
in classjavax.swing.tree.DefaultTreeSelectionModel
-
areSiblingsSelected
private boolean areSiblingsSelected(javax.swing.tree.TreePath path)
-
removeSelectionPaths
public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
- Specified by:
removeSelectionPaths
in interfacejavax.swing.tree.TreeSelectionModel
- Overrides:
removeSelectionPaths
in classjavax.swing.tree.DefaultTreeSelectionModel
-
toggleRemoveSelection
private void toggleRemoveSelection(javax.swing.tree.TreePath path)
-
-