public class CheckTreeSelectionModel
extends javax.swing.tree.DefaultTreeSelectionModel
| Constructor and Description |
|---|
CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addSelectionPaths(javax.swing.tree.TreePath[] paths)
Adds paths to the current selection
|
boolean |
isPathOrAncestorSelected(javax.swing.tree.TreePath path)
Returns true if the path or any ancestor is selected.
|
boolean |
isPathUnselected(javax.swing.tree.TreePath path)
Returns true if neither the path nor any descendant is selected.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.
|
void |
removeSelectionPaths(javax.swing.tree.TreePath[] paths)
Removes paths from the current selection
|
void |
setSelectionPaths(javax.swing.tree.TreePath[] paths) |
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, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndexpublic CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
model - a TreeModelpublic boolean isPathUnselected(javax.swing.tree.TreePath path)
path - the path to testpublic boolean isPathOrAncestorSelected(javax.swing.tree.TreePath path)
path - the path to testpublic void setSelectionPaths(javax.swing.tree.TreePath[] paths)
setSelectionPaths in interface javax.swing.tree.TreeSelectionModelsetSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpublic void addSelectionPaths(javax.swing.tree.TreePath[] paths)
addSelectionPaths in interface javax.swing.tree.TreeSelectionModeladdSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpaths - the paths to addpublic void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
removeSelectionPaths in interface javax.swing.tree.TreeSelectionModelremoveSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpaths - the paths to removepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface javax.swing.tree.TreeSelectionModeladdPropertyChangeListener in class javax.swing.tree.DefaultTreeSelectionModellistener - the object requesting property change notificationpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface javax.swing.tree.TreeSelectionModelremovePropertyChangeListener in class javax.swing.tree.DefaultTreeSelectionModellistener - the listener requesting removal