|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.DefaultListSelectionModel
public class DefaultListSelectionModel
The default implementation of ListSelectionModel, the model used by ListBoxes.
| Field Summary | |
|---|---|
static java.lang.String |
SELECTION_MODE_CHANGED_PROPERTY
|
| Fields inherited from interface nextapp.echo.ListSelectionModel |
|---|
MULTIPLE_SELECTION, SINGLE_SELECTION |
| Constructor Summary | |
|---|---|
DefaultListSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
addListSelectionListener(ListSelectionListener l)
Adds a ListSelectionListener to the selection model. |
void |
clearSelection()
Deselects all items. |
protected void |
fireValueChanged()
Notifies ListSelectionListeners that the state of this
ListSelectionModel has changed. |
int |
getMaxSelectedIndex()
Returns the maximum selected index. |
int |
getMinSelectedIndex()
Returns the maximum selected index. |
int |
getSelectionMode()
Returns the selection mode. |
boolean |
isSelectedIndex(int index)
Determines whether an index is selected. |
boolean |
isSelectionEmpty()
Determines if any items are selected. |
void |
removeListSelectionListener(ListSelectionListener l)
Removes a ListSelectionListener from the selection model. |
void |
setSelectedIndex(int index,
boolean newValue)
Sets the selection state of the given index. |
void |
setSelectionMode(int selectionMode)
Sets the selection mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SELECTION_MODE_CHANGED_PROPERTY
| Constructor Detail |
|---|
public DefaultListSelectionModel()
| Method Detail |
|---|
public void addListSelectionListener(ListSelectionListener l)
ListSelectionListener to the selection model.
addListSelectionListener in interface ListSelectionModell - The ListSelectionListener to be added.public void clearSelection()
clearSelection in interface ListSelectionModelprotected void fireValueChanged()
ListSelectionListeners that the state of this
ListSelectionModel has changed.
public int getMaxSelectedIndex()
getMaxSelectedIndex in interface ListSelectionModelpublic int getMinSelectedIndex()
getMinSelectedIndex in interface ListSelectionModelpublic int getSelectionMode()
getSelectionMode in interface ListSelectionModelpublic boolean isSelectedIndex(int index)
isSelectedIndex in interface ListSelectionModelindex - The index to test for selection.
public boolean isSelectionEmpty()
isSelectionEmpty in interface ListSelectionModelpublic void removeListSelectionListener(ListSelectionListener l)
ListSelectionListener from the selection model.
removeListSelectionListener in interface ListSelectionModell - The ListSelectionListener to be removed.
public void setSelectedIndex(int index,
boolean newValue)
setSelectedIndex in interface ListSelectionModelindex - The index to select.newValue - The new selection state of the item at the given index.public void setSelectionMode(int selectionMode)
setSelectionMode in interface ListSelectionModelselectionMode - The selection mode, one of the following values:
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||