org.eclipse.swt.accessibility.Accessible.checkNull()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(112)

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

Accessible.checkNull介绍

暂无

代码示例

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

/**
 * Constructs a new instance of this class given its parent.
 *
 * @param parent the Accessible parent, which must not be null
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
 * </ul>
 *
 * @see #dispose
 * @see Control#getAccessible
 *
 * @since 3.6
 */
public Accessible(Accessible parent) {
  this.parent = checkNull(parent);
  this.control = parent.control;
  if (parent.children == null) parent.children = new ArrayList<>();
  parent.children.add(this);
}

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

/**
 * Constructs a new instance of this class given its parent.
 *
 * @param parent the Accessible parent, which must not be null
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
 * </ul>
 *
 * @see #dispose
 * @see Control#getAccessible
 *
 * @since 3.6
 */
public Accessible(Accessible parent) {
  this.parent = checkNull(parent);
  this.control = parent.control;
  if (parent.children == null) parent.children = new ArrayList<>();
  parent.children.add(this);
}

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

/**
 * Constructs a new instance of this class given its parent.
 *
 * @param parent the Accessible parent, which must not be null
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
 * </ul>
 *
 * @see #dispose
 * @see Control#getAccessible
 *
 * @since 3.6
 */
public Accessible(Accessible parent) {
  this.parent = checkNull(parent);
  this.control = parent.control;
  if (parent.children == null) parent.children = new ArrayList<>();
  parent.children.add(this);
}

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

/**
 * Constructs a new instance of this class given its parent.
 *
 * @param parent the Accessible parent, which must not be null
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
 * </ul>
 *
 * @see #dispose
 * @see Control#getAccessible
 *
 * @since 3.6
 */
public Accessible(Accessible parent) {
  this.parent = checkNull(parent);
  this.control = parent.control;
  parent.children.add(this);
  AddRef();
}

相关文章