|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TreeSelectionModel
Field Summary | |
---|---|
static int |
MULTIPLE_SELECTION
|
static java.lang.String |
SELECTION_MODE_PROPERTY
|
static int |
SINGLE_SELECTION
|
Method Summary | |
---|---|
void |
addChangeListener(nextapp.echo.app.event.ChangeListener l)
Adds a ChangeListener to the selection model, which will
be notified when the selection changes. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the selection model, which will
be notified on property changes. |
void |
addSelectionPath(TreePath path)
Adds path to the current selection. |
void |
addSelectionPaths(TreePath[] paths)
Adds paths to the current selection. |
void |
clearSelection()
Deselects all items. |
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)
Determines whether a tree path is selected. |
boolean |
isSelectionEmpty()
Determines if no items are selected. |
void |
removeChangeListener(nextapp.echo.app.event.ChangeListener l)
Removes a ChangeListener from being notified of when the
selection changes. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from being notified
on property changes |
void |
removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
removeSelectionPaths(TreePath[] paths)
Removes paths from the selection. |
void |
setSelectionMode(int selectionMode)
Sets the selection mode. |
void |
setSelectionPath(TreePath path)
Sets the selection to path. |
void |
setSelectionPaths(TreePath[] paths)
Sets the selection to path. |
Field Detail |
---|
static final java.lang.String SELECTION_MODE_PROPERTY
static final int SINGLE_SELECTION
static final int MULTIPLE_SELECTION
Method Detail |
---|
void addChangeListener(nextapp.echo.app.event.ChangeListener l)
ChangeListener
to the selection model, which will
be notified when the selection changes.
l
- the ChangeListener
to addvoid addPropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener
to the selection model, which will
be notified on property changes.
l
- the PropertyChangeListener
to addvoid clearSelection()
TreePath getSelectionPath()
RowMapper
.
TreePath[] getSelectionPaths()
int getSelectionMode()
ListSelectionModel.SINGLE_SELECTION
: only
one list element may be selected.ListSelectionModel.MULTIPLE_SELECTION
:
multiple list elements may be selected.boolean isPathSelected(TreePath path)
path
- the path
true
if the path is currently selectedboolean isSelectionEmpty()
true
if no items are selectedvoid removeChangeListener(nextapp.echo.app.event.ChangeListener l)
ChangeListener
from being notified of when the
selection changes.
l
- the ChangeListener
to removevoid removePropertyChangeListener(java.beans.PropertyChangeListener l)
PropertyChangeListener
from being notified
on property changes
l
- the PropertyChangeListener
to removevoid setSelectionPath(TreePath path)
path
is null, this
has the same effect as invoking clearSelection
.
path
- new path to selectvoid setSelectionPaths(TreePath[] paths)
paths
is null,
this has the same effect as invoking clearSelection
.
paths
- new selectionvoid addSelectionPath(TreePath path)
path
is null.
path
- the new path to add to the current selectionvoid addSelectionPaths(TreePath[] paths)
paths
is null.
paths
- the new paths to add to the current selectionvoid removeSelectionPath(TreePath path)
path
is null.
path
- the path to remove from the selectionvoid removeSelectionPaths(TreePath[] paths)
paths
are in the selection, the TreeSelectionListeners are
notified. This method has no effect if paths
is null.
paths
- the path to remove from the selectionvoid setSelectionMode(int selectionMode)
selectionMode
- the selection mode, one of the following values:
SINGLE_SELECTION
: only one tree node
may be selected.MULTIPLE_SELECTION
: multiple list nodes
may be selected.
|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |