|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultTreeSelectionModel | +--de.qfs.lib.gui.LevelTreeSelectionModel
This class enables the selection of multiple nodes of a JTree, as long as the nodes are siblings.
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 | |
LevelTreeSelectionModel()
Create a new LevelTreeSelectionModel. |
Method Summary | |
void |
addSelectionPath(javax.swing.tree.TreePath path)
Add a path to the selection. |
void |
addSelectionPaths(javax.swing.tree.TreePath[] paths)
Add some paths to the selection. |
protected boolean |
canPathsBeAdded(javax.swing.tree.TreePath[] paths)
Decide wheter some paths can be added to the selection. |
protected boolean |
canPathsBeRemoved(javax.swing.tree.TreePath[] paths)
Paths can always be removed. |
void |
setSelectionPaths(javax.swing.tree.TreePath[] paths)
Set the paths of the selection. |
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
addPropertyChangeListener, addTreeSelectionListener, arePathsContiguous, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, 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 LevelTreeSelectionModel()
Method Detail |
protected boolean canPathsBeAdded(javax.swing.tree.TreePath[] paths)
canPathsBeAdded
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- The paths to add.protected boolean canPathsBeRemoved(javax.swing.tree.TreePath[] paths)
canPathsBeRemoved
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- The paths to remove.public void addSelectionPath(javax.swing.tree.TreePath path)
addSelectionPath
in class javax.swing.tree.DefaultTreeSelectionModel
path
- The path to add.public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
addSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- The paths to add.public void setSelectionPaths(javax.swing.tree.TreePath[] paths)
setSelectionPaths
in class javax.swing.tree.DefaultTreeSelectionModel
paths
- The paths to set.
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |