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
.
protected static final JTree.EmptySelectionModel sharedInstance
The single instance of EmptySelectionModel
.
protected EmptySelectionModel()
public static JTree.EmptySelectionModel sharedInstance()
Returns the single instance of EmptySelectionModel
.
EmptySelectionModel
public void setSelectionPaths(TreePath[] paths)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
setSelectionPaths
in interface TreeSelectionModel
setSelectionPaths
in class DefaultTreeSelectionModel
paths
- the paths to select; this is ignoredpublic void addSelectionPaths(TreePath[] paths)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
addSelectionPaths
in interface TreeSelectionModel
addSelectionPaths
in class DefaultTreeSelectionModel
paths
- the paths to add to the selection; this is ignoredpublic void removeSelectionPaths(TreePath[] paths)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
removeSelectionPaths
in interface TreeSelectionModel
removeSelectionPaths
in class DefaultTreeSelectionModel
paths
- the paths to remove; this is ignoredpublic void setSelectionMode(int mode)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
setSelectionMode
in interface TreeSelectionModel
setSelectionMode
in class DefaultTreeSelectionModel
mode
- the selection mode; this is ignoredpublic void setRowMapper(RowMapper mapper)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
setRowMapper
in interface TreeSelectionModel
setRowMapper
in class DefaultTreeSelectionModel
mapper
- the RowMapper
instance; this is ignoredpublic void addTreeSelectionListener(TreeSelectionListener listener)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
addTreeSelectionListener
in interface TreeSelectionModel
addTreeSelectionListener
in class DefaultTreeSelectionModel
listener
- the listener to add; this is ignoredpublic void removeTreeSelectionListener(TreeSelectionListener listener)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
removeTreeSelectionListener
in interface TreeSelectionModel
removeTreeSelectionListener
in class DefaultTreeSelectionModel
listener
- the listener to remove; this is ignoredpublic void addPropertyChangeListener(PropertyChangeListener listener)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
addPropertyChangeListener
in interface TreeSelectionModel
addPropertyChangeListener
in class DefaultTreeSelectionModel
listener
- the listener to add; this is ignoredpublic void removePropertyChangeListener(PropertyChangeListener listener)
This is overriden to do nothing; EmptySelectionModel
does not allow a selection.
removePropertyChangeListener
in interface TreeSelectionModel
removePropertyChangeListener
in class DefaultTreeSelectionModel
listener
- the listener to remove; this is ignored
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.