JClass DesktopViews 6.3.0 API
Documentation

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

Field Summary
protected static JCTreeTable.EmptyTreeSelectionModel emptyModel
           
 
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
protected JCTreeTable.EmptyTreeSelectionModel()
           
 
Method Summary
 void addSelectionPaths(TreePath[] paths)
          A null implementation that adds nothing.
static JCTreeTable.EmptyTreeSelectionModel getSharedInstance()
          Returns a shared instance of an empty selection model.
 void removeSelectionPaths(TreePath[] paths)
          A null implementation that removes nothing.
 void setSelectionPaths(TreePath[] paths)
          A null implementation that selects nothing.
 
Methods inherited from class com.klg.jclass.swing.DefaultTreeTableSelectionModel
getListSelectionModel
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

emptyModel

protected static JCTreeTable.EmptyTreeSelectionModel emptyModel
Constructor Detail

JCTreeTable.EmptyTreeSelectionModel

protected JCTreeTable.EmptyTreeSelectionModel()
Method Detail

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

Copyright © 2004 Quest Software Inc..
All rights reserved.