CoolItem.addSelectionListener

Adds the listener to the collection of listeners that will be notified when the control is selected by the user, by sending it one of the messages defined in the <code>SelectionListener</code> interface. <p> If <code>widgetSelected</code> is called when the mouse is over the drop-down arrow (or 'chevron') portion of the cool item, the event object detail field contains the value <code>SWT.ARROW</code>, and the x and y fields in the event object represent the point at the bottom left of the chevron, where the menu should be popped up. <code>widgetDefaultSelected</code> is not called. </p>

@param listener the listener which should be notified when the control is selected by the user

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the listener is null</li> </ul> @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 SelectionListener @see #removeSelectionListener @see SelectionEvent

@since 2.0

class CoolItem
void
addSelectionListener

Meta