Overview | Methods | Fields | This Package | All Packages
Selects or clears the selection for the specified item in a multiple selection list box.
Syntax
public final void setSelected( int index, boolean value )
Parameters
index
The zero-based index of the item in a multiple selection list box that you want to select or clear the selection for.
value
Set to true to select the specified item; set to false to clear the selection for the specified item.
Remarks
To select an item in a single-selection list box, use the setSelectedIndex method.
Exceptions
WFCInvalidArgumentException thrown if the specified index is not valid. WFCException thrown if the selectionMode property of the list box is set to SelectionMode.NONE.
See Also getSelected