javax.swing
protected static class JTree.EmptySelectionModel extends DefaultTreeSelectionModel
Modifier and Type | Field and Description |
---|---|
protected static JTree.EmptySelectionModel |
sharedInstance
The shared instance of this model.
|
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
Modifier | Constructor and Description |
---|---|
protected |
JTree.EmptySelectionModel()
Creates a new instance of EmptySelectionModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addSelectionPaths(TreePath[] paths)
This catches attempts to add something to the selection.
|
void |
removeSelectionPaths(TreePath[] paths)
This catches attempts to remove something from the selection.
|
void |
setSelectionPaths(TreePath[] paths)
This catches attempts to set a selection and sets nothing instead.
|
static JTree.EmptySelectionModel |
sharedInstance()
Returns the shared instance of EmptySelectionModel.
|
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
protected static final JTree.EmptySelectionModel sharedInstance
protected JTree.EmptySelectionModel()
public static JTree.EmptySelectionModel sharedInstance()
public void setSelectionPaths(TreePath[] paths)
setSelectionPaths
in interface TreeSelectionModel
setSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used herepublic void addSelectionPaths(TreePath[] paths)
addSelectionPaths
in interface TreeSelectionModel
addSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used herepublic void removeSelectionPaths(TreePath[] paths)
removeSelectionPaths
in interface TreeSelectionModel
removeSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used here