Button.setSelection

Sets the selection state of the receiver, if it is of type <code>CHECK</code>, <code>RADIO</code>, or <code>TOGGLE</code>.

<p> When the receiver is of type <code>CHECK</code> or <code>RADIO</code>, it is selected when it is checked. When it is of type <code>TOGGLE</code>, it is selected when it is pushed in.

@param selected the new selection state

@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>

class Button
void
setSelection
()

Meta