|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the current state of the selection for the tree component.
Field Summary | |
static int |
CONTIGUOUS_TREE_SELECTION
Selection can only be contiguous. |
static int |
DISCONTIGUOUS_TREE_SELECTION
Selection can contain any number of items that are not necessarily contiguous. |
static int |
SINGLE_TREE_SELECTION
Selection can only contain one path at a time. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
addSelectionPath(TreePath path)
Adds path to the current selection. |
void |
addSelectionPaths(TreePath[] paths)
Adds paths to the current selection. |
void |
addTreeSelectionListener(TreeSelectionListener x)
Adds x to the list of listeners that are notified each time the selection changes. |
void |
clearSelection()
Empties the current selection. |
TreePath |
getLeadSelectionPath()
Returns the last path that was added. |
int |
getSelectionCount()
Returns the number of paths that are selected. |
int |
getSelectionMode()
Returns the selection mode. |
TreePath |
getSelectionPath()
Returns the first path in the selection. |
TreePath[] |
getSelectionPaths()
Returns the paths in the selection. |
boolean |
isPathSelected(TreePath path)
Returns true if the path, path, is in the current selection. |
boolean |
isSelectionEmpty()
Returns true if the selection is currently empty. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
removeSelectionPaths(TreePath[] paths)
Removes paths from the selection. |
void |
removeTreeSelectionListener(TreeSelectionListener x)
Removes x from the list of listeners that are notified each time the selection changes. |
void |
setSelectionMode(int mode)
Sets the selection model, which must be one of SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION. |
void |
setSelectionPath(TreePath path)
Sets the selection to path. |
void |
setSelectionPaths(TreePath[] paths)
Sets the selection to the the paths. |
Field Detail |
public static final int CONTIGUOUS_TREE_SELECTION
public static final int DISCONTIGUOUS_TREE_SELECTION
public static final int SINGLE_TREE_SELECTION
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedpublic void addSelectionPath(TreePath path)
path
- the new path to add to the current selection.public void addSelectionPaths(TreePath[] paths)
paths
- the new paths to add to the current selection.public void addTreeSelectionListener(TreeSelectionListener x)
x
- the new listener to be added.public void clearSelection()
public TreePath getLeadSelectionPath()
public int getSelectionCount()
public int getSelectionMode()
public TreePath getSelectionPath()
public TreePath[] getSelectionPaths()
public boolean isPathSelected(TreePath path)
public boolean isSelectionEmpty()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedpublic void removeSelectionPath(TreePath path)
path
- the path to remove from the selection.public void removeSelectionPaths(TreePath[] paths)
paths
- the paths to remove from the selection.public void removeTreeSelectionListener(TreeSelectionListener x)
x
- the listener to remove.public void setSelectionMode(int mode)
public void setSelectionPath(TreePath path)
path
- new path to selectpublic void setSelectionPaths(TreePath[] paths)
paths
- new selection.
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |