|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A representation of the selected items in a list component.
| Field Summary | |
static int |
MULTIPLE_SELECTION
|
static int |
SINGLE_SELECTION
|
| Method Summary | |
void |
addChangeListener(ChangeListener l)
Adds a ChangeListenerb to the selection model, which will
be notified when the selection changes. |
void |
clearSelection()
Deselects all items. |
int |
getMaxSelectedIndex()
Returns the maximum selected index. |
int |
getMinSelectedIndex()
Returns the minimum selected index. |
int |
getSelectionMode()
Returns the selection mode. |
boolean |
isSelectedIndex(int index)
Determines whether an index is selected. |
boolean |
isSelectionEmpty()
Determines if no items are selected. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from being notified of when the
selection changes. |
void |
setSelectedIndex(int index,
boolean selected)
Sets the selection state of the given index. |
void |
setSelectionMode(int selectionMode)
Sets the selection mode. |
| Field Detail |
public static final int SINGLE_SELECTION
public static final int MULTIPLE_SELECTION
| Method Detail |
public void addChangeListener(ChangeListener l)
ChangeListenerb to the selection model, which will
be notified when the selection changes.
l - the ChangeListener to addpublic void clearSelection()
public int getMaxSelectedIndex()
public int getMinSelectedIndex()
public int getSelectionMode()
ListSelectionModel.SINGLE_SELECTION: only
one list element may be selected.ListSelectionModel.MULTIPLE_SELECTION:
multiple list elements may be selected.public boolean isSelectedIndex(int index)
index - the index
public boolean isSelectionEmpty()
public void removeChangeListener(ChangeListener l)
ChangeListener from being notified of when the
selection changes.
l - the ChangeListener to remove
public void setSelectedIndex(int index,
boolean selected)
index - the indexselected - the new selection statepublic void setSelectionMode(int selectionMode)
selectionMode - the selection mode, one of the following values:
ListSelectionModel.SINGLE_SELECTION: only one list element
may be selected.ListSelectionModel.MULTIPLE_SELECTION: multiple list elements
may be selected.
|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||