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

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

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

Accessible.dispose介绍

[英]Disposes of the operating system resources associated with the receiver, and removes the receiver from its parent's list of children.

This method should be called when an accessible that was created with the public constructor Accessible(Accessible parent) is no longer needed. You do not need to call this when the receiver's control is disposed, because all Accessible instances associated with a control are released when the control is disposed. It is also not necessary to call this for instances of Accessible that were retrieved with Control.getAccessible().
[中]处置与接收器关联的操作系统资源,并将接收器从其父级的子级列表中移除。
当不再需要使用公共构造函数Accessible(Accessible parent)创建的可访问对象时,应调用此方法。当释放接收方控件时,不需要调用此函数,因为当释放该控件时,与该控件关联的所有Accessible实例都将被释放。对于使用Control.getAccessible()检索的Accessible实例,也不必调用此函数。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

void disposeAccessibles() {
  if (accessibles != null) {
    for (Accessible accessible : accessibles) {
      if (accessible != null) {
        accessible.dispose();
      }
    }
    accessibles = null;
  }
}
/* Returns the cell accessible for the specified column index in the receiver. */

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

@Override
  public void handleEvent(Event e) {
    for (int i = 0; i < children.size(); i++) {
      Accessible accChild = children.get(i);
      if (accChild.item == item) {
        accChild.dispose();
      }
    }
  }
});

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

void release () {
  if (children != null) {
    for (int i = 0; i < children.size(); i++) {
      Accessible child = children.get(i);
      child.dispose();
    }
  }
  if (accessibleObject != null) {
    accessibleObject.release ();
    accessibleObject = null;
  }
}

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

void release () {
  if (children != null) {
    for (int i = 0; i < children.size(); i++) {
      Accessible child = children.get(i);
      child.dispose();
    }
  }
  if (accessibleObject != null) {
    accessibleObject.release ();
    accessibleObject = null;
  }
}

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

void release () {
  if (children != null) {
    for (int i = 0; i < children.size(); i++) {
      Accessible child = children.get(i);
      child.dispose();
    }
  }
  if (accessibleObject != null) {
    accessibleObject.release ();
    accessibleObject = null;
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

void dispose (boolean notifyParent) {
  super.dispose ();	/* super is intentional here */
  if (notifyParent) parent.destroyItem (this);
  if (accessible != null) {
    accessible.dispose();
    accessible = null;
  }
  parent = null;
}
/**

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

/**
 * Invokes platform specific functionality to dispose an accessible object.
 * <p>
 * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
 * API for <code>Accessible</code>. It is marked public only so that it
 * can be shared within the packages provided by SWT. It is not
 * available on all platforms, and should never be called from
 * application code.
 * </p>
 *
 * @noreference This method is not intended to be referenced by clients.
 */
public void internal_dispose_Accessible() {
  if (iaccessible != null) {
    iaccessible.Release();
  }
  iaccessible = null;
  Release();
  for (int i = 0; i < children.size(); i++) {
    Accessible child = children.get(i);
    child.dispose();
  }
}

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

accChild.dispose();
accChild.item = null;
found = true;

相关文章