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

x33g5p2x  于2022-01-29 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(116)

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

Shell.checkSubclass介绍

暂无

代码示例

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

Shell (Display display, Shell parent, int style, int /*long*/ handle, boolean embedded) {
  super ();
  checkSubclass ();
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  if (parent != null && parent.isDisposed ()) {
    error (SWT.ERROR_INVALID_ARGUMENT);
  }
  this.center = parent != null && (style & SWT.SHEET) != 0;
  this.style = checkStyle (parent, style);
  this.parent = parent;
  this.display = display;
  this.handle = handle;
  if (handle != 0 && !embedded) {
    state |= FOREIGN_HANDLE;
  }
  reskinWidget();
  createWidget ();
}

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

Shell (Display display, Shell parent, int style, long /*int*/ handle, boolean embedded) {
  super ();
  checkSubclass ();
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  if (parent != null && parent.isDisposed ()) {
    error (SWT.ERROR_INVALID_ARGUMENT);
  }
  this.center = parent != null && (style & SWT.SHEET) != 0;
  this.style = checkStyle (parent, style);
  this.parent = parent;
  this.display = display;
  if (handle != 0) {
    if (embedded) {
      this.handle = handle;
    } else {
      shellHandle = handle;
      state |= FOREIGN_HANDLE;
    }
  }
  reskinWidget();
  createWidget (0);
}

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

Shell (Display display, Shell parent, int style, int /*long*/ handle, boolean embedded) {
  super ();
  checkSubclass ();
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  if (parent != null && parent.isDisposed ()) {
    error (SWT.ERROR_INVALID_ARGUMENT);
  }
  this.center = parent != null && (style & SWT.SHEET) != 0;
  this.style = checkStyle (parent, style);
  this.parent = parent;
  this.display = display;
  if (handle != 0) {
    if (embedded) {
      this.handle = handle;
    } else {
      shellHandle = handle;
      state |= FOREIGN_HANDLE;
    }
  }
  reskinWidget();
  createWidget (0);
}

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

Shell (Display display, Shell parent, int style, int /*long*/ handle, boolean embedded) {
  super ();
  checkSubclass ();
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  if (parent != null && parent.isDisposed ()) {
    error (SWT.ERROR_INVALID_ARGUMENT);
  }
  this.center = parent != null && (style & SWT.SHEET) != 0;
  this.style = checkStyle (parent, style);
  this.parent = parent;
  this.display = display;
  if (handle != 0) {
    if (embedded) {
      this.handle = handle;
    } else {
      shellHandle = handle;
      state |= FOREIGN_HANDLE;
    }
  }
  reskinWidget();
  createWidget (0);
}

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

Shell (Display display, Shell parent, int style, long /*int*/handle, boolean embedded) {
  super ();
  checkSubclass ();
  if (display == null) display = Display.getCurrent ();
  if (display == null) display = Display.getDefault ();
  if (!display.isValidThread ()) {
    error (SWT.ERROR_THREAD_INVALID_ACCESS);
  }
  if (parent != null && parent.isDisposed ()) {
    error (SWT.ERROR_INVALID_ARGUMENT);    
  }
  if (!Display.getSheetEnabled ()) {
    this.center = parent != null && (style & SWT.SHEET) != 0;
  }
  this.style = checkStyle (parent, style);
  this.parent = parent;
  this.display = display;
  if (handle != 0) {
    if (embedded) {
      view = new NSView(handle);
    } else {
      window = new NSWindow(handle);
      state |= FOREIGN_HANDLE;
    }
  }
  reskinWidget();
  createWidget ();
}

相关文章

微信公众号

最新文章

更多

Shell类方法