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 |
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
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
addSelectionPaths(TreePath
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
addTreeSelectionListener(TreeSelectionListener
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
removePropertyChangeListener(PropertyChangeListener
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
removeSelectionPaths(TreePath
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
removeTreeSelectionListener(TreeSelectionListener
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
void |
setRowMapper(RowMapper
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
This is overriden to do nothing;
EmptySelectionModel does not allow a selection.
|
static JTree |
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.
EmptySelectionModel
public void setSelectionPaths(TreePath[] paths)
EmptySelectionModel does not allow a selection.
setSelectionPaths in interface
TreeSelectionModel
setSelectionPaths in class
DefaultTreeSelectionModel
paths - the paths to select; this is ignored
public void addSelectionPaths(TreePath[] paths)
EmptySelectionModel does not allow a selection.
addSelectionPaths in interface
TreeSelectionModel
addSelectionPaths in class
DefaultTreeSelectionModel
paths - the paths to add to the selection; this is ignored
public void removeSelectionPaths(TreePath[] paths)
EmptySelectionModel does not allow a selection.
removeSelectionPaths in interface
TreeSelectionModel
removeSelectionPaths in class
DefaultTreeSelectionModel
paths - the paths to remove; this is ignored
public void setSelectionMode(int mode)
EmptySelectionModel does not allow a selection.
setSelectionMode in interface
TreeSelectionModel
setSelectionMode in class
DefaultTreeSelectionModel
mode - the selection mode; this is ignored
public void setRowMapper(RowMappermapper)
EmptySelectionModel does not allow a selection.
setRowMapper in interface
TreeSelectionModel
setRowMapper in class
DefaultTreeSelectionModel
mapper - the
RowMapper instance; this is ignored
public void addTreeSelectionListener(TreeSelectionListenerlistener)
EmptySelectionModel does not allow a selection.
addTreeSelectionListener in interface
TreeSelectionModel
addTreeSelectionListener in class
DefaultTreeSelectionModel
listener - the listener to add; this is ignored
public void removeTreeSelectionListener(TreeSelectionListenerlistener)
EmptySelectionModel does not allow a selection.
removeTreeSelectionListener in interface
TreeSelectionModel
removeTreeSelectionListener in class
DefaultTreeSelectionModel
listener - the listener to remove; this is ignored
public void addPropertyChangeListener(PropertyChangeListenerlistener)
EmptySelectionModel does not allow a selection.
addPropertyChangeListener in interface
TreeSelectionModel
addPropertyChangeListener in class
DefaultTreeSelectionModel
listener - the listener to add; this is ignored
public void removePropertyChangeListener(PropertyChangeListenerlistener)
EmptySelectionModel does not allow a selection.
removePropertyChangeListener in interface
TreeSelectionModel
removePropertyChangeListener in class
DefaultTreeSelectionModel
listener - the listener to remove; this is ignored