|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WMultiList
Implements base functionality for user selection of multiple values from a list of values.
The wui framework provides multiple concrete implementations of this class including
WMultiSelectList
, WCheckList
and WGrabBox
.
TODO: Add change listener handling
Constructor Summary | |
WMultiList()
Constructs an empty multiple selection list. |
|
WMultiList(List options)
Constructs a multiple selection list with the specified options. |
|
WMultiList(Object[] options)
Constructs a multiple selection list with the specified options. |
Method Summary | |
void |
addSelectedIndex(int selectedIndex)
Adds the value at the specified index to the set of selected values. |
void |
clearSelection()
Clears the current selection. |
List |
getOptions()
Returns the list of selectable options. |
List |
getSelectedIndices()
Returns a list of indices in the list of selectable options of the currently selected values. |
List |
getSelectedValues()
Returns a list of the currently selected values. |
boolean |
isSelectedIndex(int selectedIndex)
Returns true if the specified index is in the set of selected indices, false otherwise. |
void |
removeSelectedIndex(int selectedIndex)
Removes the specified index from the list of selected indices. |
void |
selectAll()
Adds all values to the list of selected values. |
void |
setOptions(List options)
Sets the list of selectable options. |
void |
setOptions(Object[] options)
Sets the list of selectable options. |
void |
setSelectedIndices(int[] selectedIndices)
Sets the set of selected indices to the specified array of indices. |
void |
setSelectedIndices(List selectedIndices)
Sets the set of selected indices to the specified list of indices. |
void |
setSelectedValues(List values)
Sets the selected values to the specified list of values. |
void |
setSelectedValues(Object[] values)
Sets the selected values to the specified array of values. |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, render, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WMultiList()
public WMultiList(List options)
options
- the list of selectable options.public WMultiList(Object[] options)
options
- the list of selectable options.Method Detail |
public void addSelectedIndex(int selectedIndex)
selectedIndex
- the specified index.public void clearSelection()
public List getOptions()
public List getSelectedIndices()
public List getSelectedValues()
public boolean isSelectedIndex(int selectedIndex)
selectedIndex
- the index to test.
public void removeSelectedIndex(int selectedIndex)
selectedIndex
- the index to remove.public void selectAll()
public void setOptions(List options)
options
- the list of selectable options.public void setOptions(Object[] options)
options
- the list of selectable options.public void setSelectedIndices(int[] selectedIndices)
selectedIndices
- the selected indices to set.public void setSelectedIndices(List selectedIndices)
selectedIndices
- the selected indices to set.public void setSelectedValues(List values)
values
- the selected values.public void setSelectedValues(Object[] values)
values
- the selected values.
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |