java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
javax.swing.JTree.EmptySelectionModel
- All Implemented Interfaces:
Serializable
,Cloneable
,TreeSelectionModel
- Enclosing class:
JTree
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
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final JTree.EmptySelectionModel
The single instance ofEmptySelectionModel
.Fields declared in class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
Fields declared in interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
This is overriden to do nothing;EmptySelectionModel
does not allow a selection.void
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
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
Returns the single instance ofEmptySelectionModel
.Methods declared in class javax.swing.tree.DefaultTreeSelectionModel
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, updateLeadIndex
-
Field Details
-
Constructor Details
-
EmptySelectionModel
protected EmptySelectionModel()Constructs anEmptySelectionModel
.
-
-
Method Details
-
setSelectionPaths
This is overriden to do nothing;EmptySelectionModel
does not allow a selection.- Specified by: