|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
com.fullspan.pwkeep.gui.PwkTreeSelectionModel
public class PwkTreeSelectionModel
The PWKeep tree selection model only allows the selection of exactly one tree node at any time - selecting zero nodes or more than one node is not allowed.
| 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 | |
|---|---|
PwkTreeSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
addSelectionPath(javax.swing.tree.TreePath path)
This tree model does not allow more than one node to be in the selection, so this method calls setSelectionPath. |
void |
addSelectionPaths(javax.swing.tree.TreePath[] paths)
This tree model does not allow more than one node to be in the selection, so this method calls setSelectionPaths. |
void |
removeSelectionPath(javax.swing.tree.TreePath path)
This tree model does not allow an empty selection, so calls to this method do nothing. |
void |
removeSelectionPaths(javax.swing.tree.TreePath[] paths)
This tree model does not allow an empty selection, so calls to this method do nothing. |
| Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
|---|
addPropertyChangeListener, 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, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths, toString, updateLeadIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PwkTreeSelectionModel()
| Method Detail |
|---|
public void addSelectionPath(javax.swing.tree.TreePath path)
setSelectionPath.
addSelectionPath in interface javax.swing.tree.TreeSelectionModeladdSelectionPath in class javax.swing.tree.DefaultTreeSelectionModelpublic void addSelectionPaths(javax.swing.tree.TreePath[] paths)
setSelectionPaths.
addSelectionPaths in interface javax.swing.tree.TreeSelectionModeladdSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModelpublic void removeSelectionPath(javax.swing.tree.TreePath path)
removeSelectionPath in interface javax.swing.tree.TreeSelectionModelremoveSelectionPath in class javax.swing.tree.DefaultTreeSelectionModelpublic void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
removeSelectionPaths in interface javax.swing.tree.TreeSelectionModelremoveSelectionPaths in class javax.swing.tree.DefaultTreeSelectionModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||