javax.swing
Class JTree.EmptySelectionModel

java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
javax.swing.JTree.EmptySelectionModel
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, javax.swing.tree.TreeSelectionModel
- Enclosing class:
- JTree
- protected static class JTree.EmptySelectionModel
- extends javax.swing.tree.DefaultTreeSelectionModel
A TreeModel that does not allow anything to be selected.
| Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, 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, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, toString, updateLeadIndex |
serialVersionUID
private static final long serialVersionUID
- The serial version UID.
- See Also:
- Constant Field Values
sharedInstance
protected static final JTree.EmptySelectionModel sharedInstance
- The shared instance of this model.
JTree.EmptySelectionModel
protected JTree.EmptySelectionModel()
- Creates a new instance of EmptySelectionModel.
sharedInstance
public static JTree.EmptySelectionModel sharedInstance()
- Returns the shared instance of EmptySelectionModel.
setSelectionPaths
public void setSelectionPaths(javax.swing.tree.TreePath[] paths)
- This catches attempts to set a selection and sets nothing instead.
addSelectionPaths
public void addSelectionPaths(javax.swing.tree.TreePath[] paths)
- This catches attempts to add something to the selection.
removeSelectionPaths
public void removeSelectionPaths(javax.swing.tree.TreePath[] paths)
- This catches attempts to remove something from the selection.