- 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 EmptySelectionModelis aTreeSelectionModelthat 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.beanspackage. Please seeXMLEncoder.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static JTree.EmptySelectionModelsharedInstanceThe single instance ofEmptySelectionModel.- 
Fields declared in class javax.swing.tree.DefaultTreeSelectionModelchangeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 - 
Fields declared in interface javax.swing.tree.TreeSelectionModelCONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedEmptySelectionModel()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidaddSelectionPaths(TreePath[] paths)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidaddTreeSelectionListener(TreeSelectionListener listener)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidremovePropertyChangeListener(PropertyChangeListener listener)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidremoveSelectionPaths(TreePath[] paths)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidremoveTreeSelectionListener(TreeSelectionListener listener)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidsetRowMapper(RowMapper mapper)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidsetSelectionMode(int mode)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.voidsetSelectionPaths(TreePath[] paths)This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.static JTree.EmptySelectionModelsharedInstance()Returns the single instance ofEmptySelectionModel.- 
Methods declared in class javax.swing.tree.DefaultTreeSelectionModeladdSelectionPath, 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, updateLeadIndex
 
- 
 
- 
- 
- 
Field Detail- 
sharedInstanceprotected static final JTree.EmptySelectionModel sharedInstance The single instance ofEmptySelectionModel.
 
- 
 - 
Method Detail- 
sharedInstancepublic static JTree.EmptySelectionModel sharedInstance() Returns the single instance ofEmptySelectionModel.- Returns:
- single instance of EmptySelectionModel
 
 - 
setSelectionPathspublic void setSelectionPaths(TreePath[] paths) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- setSelectionPathsin interface- TreeSelectionModel
- Overrides:
- setSelectionPathsin class- DefaultTreeSelectionModel
- Parameters:
- paths- the paths to select; this is ignored
 
 - 
addSelectionPathspublic void addSelectionPaths(TreePath[] paths) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- addSelectionPathsin interface- TreeSelectionModel
- Overrides:
- addSelectionPathsin class- DefaultTreeSelectionModel
- Parameters:
- paths- the paths to add to the selection; this is ignored
 
 - 
removeSelectionPathspublic void removeSelectionPaths(TreePath[] paths) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- removeSelectionPathsin interface- TreeSelectionModel
- Overrides:
- removeSelectionPathsin class- DefaultTreeSelectionModel
- Parameters:
- paths- the paths to remove; this is ignored
 
 - 
setSelectionModepublic void setSelectionMode(int mode) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- setSelectionModein interface- TreeSelectionModel
- Overrides:
- setSelectionModein class- DefaultTreeSelectionModel
- Parameters:
- mode- the selection mode; this is ignored
- Since:
- 1.7
 
 - 
setRowMapperpublic void setRowMapper(RowMapper mapper) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- setRowMapperin interface- TreeSelectionModel
- Overrides:
- setRowMapperin class- DefaultTreeSelectionModel
- Parameters:
- mapper- the- RowMapperinstance; this is ignored
- Since:
- 1.7
 
 - 
addTreeSelectionListenerpublic void addTreeSelectionListener(TreeSelectionListener listener) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- addTreeSelectionListenerin interface- TreeSelectionModel
- Overrides:
- addTreeSelectionListenerin class- DefaultTreeSelectionModel
- Parameters:
- listener- the listener to add; this is ignored
- Since:
- 1.7
 
 - 
removeTreeSelectionListenerpublic void removeTreeSelectionListener(TreeSelectionListener listener) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- removeTreeSelectionListenerin interface- TreeSelectionModel
- Overrides:
- removeTreeSelectionListenerin class- DefaultTreeSelectionModel
- Parameters:
- listener- the listener to remove; this is ignored
- Since:
- 1.7
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(PropertyChangeListener listener) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- addPropertyChangeListenerin interface- TreeSelectionModel
- Overrides:
- addPropertyChangeListenerin class- DefaultTreeSelectionModel
- Parameters:
- listener- the listener to add; this is ignored
- Since:
- 1.7
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener listener) This is overriden to do nothing;EmptySelectionModeldoes not allow a selection.- Specified by:
- removePropertyChangeListenerin interface- TreeSelectionModel
- Overrides:
- removePropertyChangeListenerin class- DefaultTreeSelectionModel
- Parameters:
- listener- the listener to remove; this is ignored
- Since:
- 1.7
 
 
- 
 
-