List.select

Selects the items at the given zero-relative indices in the receiver. The current selection is not cleared before the new items are selected. <p> If the item at a given index is not selected, it is selected. If the item at a given index was already selected, it remains selected. Indices that are out of range and duplicate indices are ignored. If the receiver is single-select and multiple indices are specified, then all indices are ignored.

@param indices the array of indices for the items to select

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see List#setSelection(int[])

  1. void select(int index)
  2. void select(int start, int end)
  3. void select(int[] indices)
    class List
    void
    select
    (
    int[] indices
    )

Meta