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

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

本文整理了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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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 );
}

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

/**
 * Adds the listener to the collection of listeners who will
 * be notified when the receiver needs to be painted, by sending it
 * one of the messages defined in the <code>PaintListener</code>
 * interface.
 *
 * @param listener the listener which should 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 #removePaintListener
 * @since 1.3
 */
public void addPaintListener( PaintListener listener ) {
 checkWidget();
 if( listener == null ) {
  error( SWT.ERROR_NULL_ARGUMENT );
 }
 TypedListener typedListener = new TypedListener( listener );
 addListener( SWT.Paint, typedListener );
}

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

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

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

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

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

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

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

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

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

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

相关文章

Canvas类方法