protected static class

JTree.EmptySelectionModel

extends DefaultTreeSelectionModel
java.lang.Object
   ↳ javax.swing.tree.DefaultTreeSelectionModel
     ↳ javax.swing.JTree.EmptySelectionModel

Class Overview

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 JavaBeansTM has been added to the java.beans package. Please see XMLEncoder.

Summary

[Expand]
Inherited Constants
From class javax.swing.tree.DefaultTreeSelectionModel
From interface javax.swing.tree.TreeSelectionModel
Fields
protected static final JTree.EmptySelectionModel sharedInstance Unique shared instance.
[Expand]
Inherited Fields
From class javax.swing.tree.DefaultTreeSelectionModel
Protected Constructors
JTree.EmptySelectionModel()
Public Methods
void addSelectionPaths(TreePath[] paths)
A null implementation that adds nothing.
void removeSelectionPaths(TreePath[] paths)
A null implementation that removes nothing.
void setSelectionPaths(TreePath[] pPaths)
A null implementation that selects nothing.
static JTree.EmptySelectionModel sharedInstance()
Returns a shared instance of an empty selection model.
[Expand]
Inherited Methods
From class javax.swing.tree.DefaultTreeSelectionModel
From class java.lang.Object
From interface javax.swing.tree.TreeSelectionModel

Fields

protected static final JTree.EmptySelectionModel sharedInstance

Unique shared instance.

Protected Constructors

protected JTree.EmptySelectionModel ()

Public Methods

public void addSelectionPaths (TreePath[] paths)

A null implementation that adds nothing.

Parameters
paths the new path to add to the current selection

public void removeSelectionPaths (TreePath[] paths)

A null implementation that removes nothing.

Parameters
paths the paths to remove from the selection

public void setSelectionPaths (TreePath[] pPaths)

A null implementation that selects nothing.

Parameters
pPaths new selection

public static JTree.EmptySelectionModel sharedInstance ()

Returns a shared instance of an empty selection model.