protected static class JTree.EmptySelectionModel extends DefaultTreeSelectionModel
EmptySelectionModel is a TreeSelectionModel
that does not allow anything to be selected.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans™
has been added to the java.beans package.
Please see XMLEncoder.
| Modifier and Type | Field and Description |
|---|---|
protected static JTree.EmptySelectionModel |
sharedInstance
The single instance of
EmptySelectionModel. |
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionModeCONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION| Modifier | Constructor and Description |
|---|---|
protected |
EmptySelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
addSelectionPaths(TreePath[] paths)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
addTreeSelectionListener(TreeSelectionListener listener)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
removeSelectionPaths(TreePath[] paths)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
removeTreeSelectionListener(TreeSelectionListener listener)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
setRowMapper(RowMapper mapper)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
setSelectionMode(int mode)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
void |
setSelectionPaths(TreePath[] paths)
This is overriden to do nothing;
EmptySelectionModel
does not allow a selection. |
static JTree.EmptySelectionModel |
sharedInstance()
Returns the single instance of
EmptySelectionModel. |
addSelectionPath, 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, resetRowSelection, setSelectionPath, toString, updateLeadIndexprotected static final JTree.EmptySelectionModel sharedInstance
EmptySelectionModel.public static JTree.EmptySelectionModel sharedInstance()
EmptySelectionModel.EmptySelectionModelpublic void setSelectionPaths(TreePath[] paths)
EmptySelectionModel
does not allow a selection.setSelectionPaths in interface TreeSelectionModelsetSelectionPaths in class DefaultTreeSelectionModelpaths - the paths to select; this is ignoredpublic void addSelectionPaths(TreePath[] paths)
EmptySelectionModel
does not allow a selection.addSelectionPaths in interface TreeSelectionModeladdSelectionPaths in class DefaultTreeSelectionModelpaths - the paths to add to the selection; this is ignoredpublic void removeSelectionPaths(TreePath[] paths)
EmptySelectionModel
does not allow a selection.removeSelectionPaths in interface TreeSelectionModelremoveSelectionPaths in class DefaultTreeSelectionModelpaths - the paths to remove; this is ignoredpublic void setSelectionMode(int mode)
EmptySelectionModel
does not allow a selection.setSelectionMode in interface TreeSelectionModelsetSelectionMode in class DefaultTreeSelectionModelmode - the selection mode; this is ignoredpublic void setRowMapper(RowMapper mapper)
EmptySelectionModel
does not allow a selection.setRowMapper in interface TreeSelectionModelsetRowMapper in class DefaultTreeSelectionModelmapper - the RowMapper instance; this is ignoredpublic void addTreeSelectionListener(TreeSelectionListener listener)
EmptySelectionModel
does not allow a selection.addTreeSelectionListener in interface TreeSelectionModeladdTreeSelectionListener in class DefaultTreeSelectionModellistener - the listener to add; this is ignoredpublic void removeTreeSelectionListener(TreeSelectionListener listener)
EmptySelectionModel
does not allow a selection.removeTreeSelectionListener in interface TreeSelectionModelremoveTreeSelectionListener in class DefaultTreeSelectionModellistener - the listener to remove; this is ignoredpublic void addPropertyChangeListener(PropertyChangeListener listener)
EmptySelectionModel
does not allow a selection.addPropertyChangeListener in interface TreeSelectionModeladdPropertyChangeListener in class DefaultTreeSelectionModellistener - the listener to add; this is ignoredpublic void removePropertyChangeListener(PropertyChangeListener listener)
EmptySelectionModel
does not allow a selection.removePropertyChangeListener in interface TreeSelectionModelremovePropertyChangeListener in class DefaultTreeSelectionModellistener - the listener to remove; this is ignored Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.