org.eclipse.swt.widgets.Canvas.error()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(195)

本文整理了Java中org.eclipse.swt.widgets.Canvas.error()方法的一些代码示例,展示了Canvas.error()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.error()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:error

Canvas.error介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. /**
  2. * Sets the receiver's IME.
  3. *
  4. * @param ime the new IME for the receiver, may be null
  5. *
  6. * @exception IllegalArgumentException <ul>
  7. * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</li>
  8. * </ul>
  9. * @exception SWTException <ul>
  10. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  11. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  12. * </ul>
  13. *
  14. * @since 3.4
  15. */
  16. public void setIME (IME ime) {
  17. checkWidget ();
  18. if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  19. this.ime = ime;
  20. }

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. /**
  2. * Sets the receiver's IME.
  3. *
  4. * @param ime the new IME for the receiver, may be null
  5. *
  6. * @exception IllegalArgumentException <ul>
  7. * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</li>
  8. * </ul>
  9. * @exception SWTException <ul>
  10. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  11. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  12. * </ul>
  13. *
  14. * @since 3.4
  15. */
  16. public void setIME (IME ime) {
  17. checkWidget ();
  18. if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  19. this.ime = ime;
  20. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. /**
  2. * Sets the receiver's IME.
  3. *
  4. * @param ime the new IME for the receiver, may be null
  5. *
  6. * @exception IllegalArgumentException <ul>
  7. * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</li>
  8. * </ul>
  9. * @exception SWTException <ul>
  10. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  11. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  12. * </ul>
  13. *
  14. * @since 3.4
  15. */
  16. public void setIME (IME ime) {
  17. checkWidget ();
  18. if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  19. this.ime = ime;
  20. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. /**
  2. * Sets the receiver's IME.
  3. *
  4. * @param ime the new IME for the receiver, may be null
  5. *
  6. * @exception IllegalArgumentException <ul>
  7. * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</li>
  8. * </ul>
  9. * @exception SWTException <ul>
  10. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  11. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  12. * </ul>
  13. *
  14. * @since 3.4
  15. */
  16. public void setIME (IME ime) {
  17. checkWidget ();
  18. if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  19. this.ime = ime;
  20. }

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. /**
  2. * Sets the receiver's IME.
  3. *
  4. * @param ime the new IME for the receiver, may be null
  5. *
  6. * @exception IllegalArgumentException <ul>
  7. * <li>ERROR_INVALID_ARGUMENT - if the IME has been disposed</li>
  8. * </ul>
  9. * @exception SWTException <ul>
  10. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  11. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  12. * </ul>
  13. *
  14. * @since 3.4
  15. */
  16. public void setIME (IME ime) {
  17. checkWidget ();
  18. if (ime != null && ime.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  19. this.ime = ime;
  20. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. /**
  2. * Removes the listener from the collection of listeners who will
  3. * be notified when the receiver needs to be painted.
  4. *
  5. * @param listener the listener which should no longer be notified
  6. *
  7. * @exception IllegalArgumentException <ul>
  8. * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
  9. * </ul>
  10. * @exception SWTException <ul>
  11. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  12. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  13. * </ul>
  14. *
  15. * @see PaintListener
  16. * @see #addPaintListener
  17. * @since 1.3
  18. */
  19. public void removePaintListener( PaintListener listener ) {
  20. checkWidget();
  21. if( listener == null ) {
  22. error( SWT.ERROR_NULL_ARGUMENT );
  23. }
  24. removeListener( SWT.Paint, listener );
  25. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. /**
  2. * Adds the listener to the collection of listeners who will
  3. * be notified when the receiver needs to be painted, by sending it
  4. * one of the messages defined in the <code>PaintListener</code>
  5. * interface.
  6. *
  7. * @param listener the listener which should be notified
  8. *
  9. * @exception IllegalArgumentException <ul>
  10. * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
  11. * </ul>
  12. * @exception SWTException <ul>
  13. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  14. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  15. * </ul>
  16. *
  17. * @see PaintListener
  18. * @see #removePaintListener
  19. * @since 1.3
  20. */
  21. public void addPaintListener( PaintListener listener ) {
  22. checkWidget();
  23. if( listener == null ) {
  24. error( SWT.ERROR_NULL_ARGUMENT );
  25. }
  26. TypedListener typedListener = new TypedListener( listener );
  27. addListener( SWT.Paint, typedListener );
  28. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. if (oldCaret != null) oldCaret.killFocus ();
  2. if (newCaret != null) {
  3. if (newCaret.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  4. newCaret.setFocus ();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

  1. if (oldCaret != null) oldCaret.killFocus ();
  2. if (newCaret != null) {
  3. if (newCaret.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  4. newCaret.setFocus ();

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

  1. if (oldCaret != null) oldCaret.killFocus ();
  2. if (newCaret != null) {
  3. if (newCaret.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  4. newCaret.setFocus ();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

  1. if (oldCaret != null) oldCaret.killFocus ();
  2. if (newCaret != null) {
  3. if (newCaret.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  4. newCaret.setFocus ();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

  1. if (oldCaret != null) oldCaret.killFocus ();
  2. if (newCaret != null) {
  3. if (newCaret.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
  4. newCaret.setFocus ();

相关文章

Canvas类方法