Module java.desktop
Package javax.swing

Class JTree.EmptySelectionModel

java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
javax.swing.JTree.EmptySelectionModel
All Implemented Interfaces:
Serializable, Cloneable, TreeSelectionModel
Enclosing class:
JTree

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.

  • Field Details

    • sharedInstance

      protected static final JTree.EmptySelectionModel sharedInstance
      The single instance of EmptySelectionModel.
  • Constructor Details

    • EmptySelectionModel

      protected EmptySelectionModel()
      Constructs an EmptySelectionModel.
  • Method Details

    • sharedInstance

      public static JTree.EmptySelectionModel sharedInstance()
      Returns the single instance of EmptySelectionModel.
      Returns:
      single instance of EmptySelectionModel
    • setSelectionPaths

      public void setSelectionPaths(TreePath[] paths)
      This is overriden to do nothing; EmptySelectionModel does not allow a selection.
      Specified by: