|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultTreeSelectionModel org.opensourcephysics.tools.CheckTreeSelectionModel
public class CheckTreeSelectionModel
A checkbox tree selection model.
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 | |
---|---|
CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
Constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
---|
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, updateLeadIndex |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckTreeSelectionModel(javax.swing.tree.TreeModel model)
model
- a TreeModelMethod Detail |
---|
public 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.TreeSelectionModel
setSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
addSelectionPaths
in interface javax.swing.tree.TreeSelectionModel
addSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- the paths to addpublic void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
removeSelectionPaths
in interface javax.swing.tree.TreeSelectionModel
removeSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- the paths to removepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface javax.swing.tree.TreeSelectionModel
addPropertyChangeListener
in class javax.swing.tree.DefaultTreeSelectionModel
listener
- the object requesting property change notificationpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface javax.swing.tree.TreeSelectionModel
removePropertyChangeListener
in class javax.swing.tree.DefaultTreeSelectionModel
listener
- the listener requesting removal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |