TabFolder.setSelection

Selects the item at the given zero-relative index in the receiver. If the item at the index was already selected, it remains selected. The current selection is first cleared, then the new items are selected. Indices that are out of range are ignored.

@param index the index of the item 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>

  1. void setSelection(int index)
    class TabFolder
    void
    setSelection
    (
    int index
    )
  2. void setSelection(TabItem item)
  3. void setSelection(TabItem[] items)

Meta