Example #1
0
 /**
  * Enables the receiver if the argument is <code>true</code>, and disables it otherwise. A
  * disabled menu is typically not selectable from the user interface and draws with an inactive or
  * "grayed" look.
  *
  * @param enabled the new enabled state
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  *       <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  *     </ul>
  */
 public void setEnabled(boolean enabled) {
   checkWidget();
   OS.QWidget_setEnabled(handle, enabled);
 }