com.klg.jclass.swing
Class JCTreeTable.EmptyTreeSelectionModel
java.lang.Object
|
+--javax.swing.tree.DefaultTreeSelectionModel
|
+--com.klg.jclass.swing.DefaultTreeTableSelectionModel
|
+--com.klg.jclass.swing.JCTreeTable.EmptyTreeSelectionModel
- All Implemented Interfaces:
- Cloneable, JCTreeTableSelectionModel, Serializable, TreeSelectionModel
- Enclosing class:
- JCTreeTable
- protected static class JCTreeTable.EmptyTreeSelectionModel
- extends DefaultTreeTableSelectionModel
EmptySelectionModel
is a TreeSelectionModel
that
does not allow anything to be selected. This class has a static method that
returns a static instance; this can be shared, since the model is immutable.
- See Also:
- Serialized Form
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 |
Methods inherited from interface javax.swing.tree.TreeSelectionModel |
addPropertyChangeListener, addSelectionPath, addTreeSelectionListener, clearSelection, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeSelectionPath, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath |
emptyModel
protected static JCTreeTable.EmptyTreeSelectionModel emptyModel
JCTreeTable.EmptyTreeSelectionModel
protected JCTreeTable.EmptyTreeSelectionModel()
getSharedInstance
public static JCTreeTable.EmptyTreeSelectionModel getSharedInstance()
- Returns a shared instance of an empty selection model.
- Returns:
- a shared instance of an empty tree selection model
setSelectionPaths
public void setSelectionPaths(TreePath[] paths)
- A null implementation that selects nothing.
- Specified by:
setSelectionPaths
in interface TreeSelectionModel
- Overrides:
setSelectionPaths
in class DefaultTreeSelectionModel
- Parameters:
paths
- ignored
addSelectionPaths
public void addSelectionPaths(TreePath[] paths)
- A null implementation that adds nothing.
- Specified by:
addSelectionPaths
in interface TreeSelectionModel
- Overrides:
addSelectionPaths
in class DefaultTreeSelectionModel
- Parameters:
paths
- ignored
removeSelectionPaths
public void removeSelectionPaths(TreePath[] paths)
- A null implementation that removes nothing.
- Specified by:
removeSelectionPaths
in interface TreeSelectionModel
- Overrides:
removeSelectionPaths
in class DefaultTreeSelectionModel
- Parameters:
paths
- ignored