|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
javax.swing.JTree.EmptySelectionModel
protected static class JTree.EmptySelectionModel
A TreeModel that does not allow anything to be selected.
Field Summary | |
---|---|
protected static JTree.EmptySelectionModel |
sharedInstance
The shared instance of this model. |
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 |
JTree.EmptySelectionModel()
Creates a new instance of EmptySelectionModel. |
Method Summary | |
---|---|
void |
addSelectionPaths(TreePath[] paths)
This catches attempts to add something to the selection. |
void |
removeSelectionPaths(TreePath[] paths)
This catches attempts to remove something from the selection. |
void |
setSelectionPaths(TreePath[] paths)
This catches attempts to set a selection and sets nothing instead. |
static JTree.EmptySelectionModel |
sharedInstance()
Returns the shared instance of EmptySelectionModel. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final JTree.EmptySelectionModel sharedInstance
Constructor Detail |
---|
protected JTree.EmptySelectionModel()
Method Detail |
---|
public static JTree.EmptySelectionModel sharedInstance()
public void setSelectionPaths(TreePath[] paths)
setSelectionPaths
in interface TreeSelectionModel
setSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used herepublic void addSelectionPaths(TreePath[] paths)
addSelectionPaths
in interface TreeSelectionModel
addSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used herepublic void removeSelectionPaths(TreePath[] paths)
removeSelectionPaths
in interface TreeSelectionModel
removeSelectionPaths
in class DefaultTreeSelectionModel
paths
- not used here
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |