/** * Returns the IME. * * @return the IME * * @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> * * @since 3.4 */ public IME getIME () { checkWidget (); return ime; }
/** * Returns the IME. * * @return the IME * * @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> * * @since 3.4 */ public IME getIME () { checkWidget(); return ime; }
/** * Returns the IME. * * @return the IME * * @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> * * @since 3.4 */ public IME getIME () { checkWidget (); return ime; }
/** * Returns the IME. * * @return the IME * * @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> * * @since 3.4 */ public IME getIME () { checkWidget (); return ime; }
/** * Returns the IME. * * @return the IME * * @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> * * @since 3.4 */ public IME getIME () { checkWidget (); return ime; }
/** * Returns the caret. * <p> * The caret for the control is automatically hidden * and shown when the control is painted or resized, * when focus is gained or lost and when an the control * is scrolled. To avoid drawing on top of the caret, * the programmer must hide and show the caret when * drawing in the window any other time. * </p> * * @return the caret for the receiver, may be null * * @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> */ public Caret getCaret () { checkWidget(); return caret; }
/** * Returns the caret. * <p> * The caret for the control is automatically hidden * and shown when the control is painted or resized, * when focus is gained or lost and when an the control * is scrolled. To avoid drawing on top of the caret, * the programmer must hide and show the caret when * drawing in the window any other time. * </p> * * @return the caret for the receiver, may be null * * @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> */ public Caret getCaret () { checkWidget(); return caret; }
/** * Returns the caret. * <p> * The caret for the control is automatically hidden * and shown when the control is painted or resized, * when focus is gained or lost and when an the control * is scrolled. To avoid drawing on top of the caret, * the programmer must hide and show the caret when * drawing in the window any other time. * </p> * * @return the caret for the receiver, may be null * * @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> */ public Caret getCaret () { checkWidget (); return caret; }
public void setFont (Font font) { checkWidget (); if (caret != null) caret.setFont (font); super.setFont (font); }
@Override public void setFont (Font font) { checkWidget(); if (caret != null) caret.setFont (font); super.setFont (font); }
@Override public void setFont (Font font) { checkWidget(); if (caret != null) caret.setFont (font); super.setFont (font); }
@Override public void setFont (Font font) { checkWidget (); if (caret != null) caret.setFont (font); super.setFont (font); }
@Override public void setFont (Font font) { checkWidget(); if (caret != null) caret.setFont (font); super.setFont (font); }
/** * Sets the receiver's IME. * * @param ime the new IME for the receiver, may be null * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</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> * * @since 3.4 */ public void setIME (IME ime) { checkWidget (); if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); this.ime = ime; }
/** * Sets the receiver's IME. * * @param ime the new IME for the receiver, may be null * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</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> * * @since 3.4 */ public void setIME (IME ime) { checkWidget (); if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); this.ime = ime; }
/** * Sets the receiver's IME. * * @param ime the new IME for the receiver, may be null * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</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> * * @since 3.4 */ public void setIME (IME ime) { checkWidget (); if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); this.ime = ime; }
/** * Sets the receiver's IME. * * @param ime the new IME for the receiver, may be null * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</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> * * @since 3.4 */ public void setIME (IME ime) { checkWidget (); if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); this.ime = ime; }
/** * Sets the receiver's IME. * * @param ime the new IME for the receiver, may be null * * @exception IllegalArgumentException <ul> * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</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> * * @since 3.4 */ public void setIME (IME ime) { checkWidget (); if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT); this.ime = ime; }
/** * Removes the listener from the collection of listeners who will * be notified when the receiver needs to be painted. * * @param listener the listener which should no longer be notified * * @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 PaintListener * @see #addPaintListener * @since 1.3 */ public void removePaintListener( PaintListener listener ) { checkWidget(); if( listener == null ) { error( SWT.ERROR_NULL_ARGUMENT ); } removeListener( SWT.Paint, listener ); }
void clearArea (int x, int y, int width, int height) { checkWidget (); if (OS.IsWindowVisible (handle)) { RECT rect = new RECT (); OS.SetRect (rect, x, y, x + width, y + height); int /*long*/ hDC = OS.GetDCEx (handle, 0, OS.DCX_CACHE | OS.DCX_CLIPCHILDREN | OS.DCX_CLIPSIBLINGS); drawBackground (hDC, rect); OS.ReleaseDC (handle, hDC); } }