Selects or clears the selection for the specified item in a multiple selection list box.
public final void setSelected( int index, boolean value )
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.
To select an item in a single-selection list box, use the setSelectedIndex method.
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