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

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

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

Accessible.addAccessibleControlListener介绍

[英]Adds the listener to the collection of listeners who will be notified when an accessible client asks for custom control specific information. The listener is notified by sending it one of the messages defined in the AccessibleControlListener interface.
[中]将侦听器添加到侦听器集合中,当可访问的客户端请求自定义控件特定信息时,将通知这些侦听器。通过向侦听器发送AccessibleControlListener接口中定义的消息之一来通知侦听器。

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

private void initAccessibleLabel() {
    Accessible accessible = label.getAccessible();
    accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
      public void getState(AccessibleControlEvent e) {
        if (hasFocus)
          e.detail = ACC.STATE_READONLY | ACC.STATE_FOCUSABLE
              | ACC.STATE_SELECTABLE | ACC.STATE_LINKED
              | ACC.STATE_FOCUSED;
        else
          e.detail = ACC.STATE_READONLY | ACC.STATE_FOCUSABLE
              | ACC.STATE_SELECTABLE | ACC.STATE_LINKED;

      }
    });
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

private void initAccessibleLink() {
  Accessible accessible = this.getAccessible();
  accessible.addAccessibleListener(new AccessibleAdapter() {
    public void getName(AccessibleEvent e) {
      e.result = label.getText();
    }
    public void getHelp(AccessibleEvent e) {
      e.result = label.getToolTipText();
    }
  });
  accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
    public void getRole(AccessibleControlEvent e) {
      e.detail = ACC.ROLE_LINK;
    }
    public void getState(AccessibleControlEvent e) {
      if (hasFocus)
        e.detail = ACC.STATE_FOCUSABLE | ACC.STATE_LINKED
            | ACC.STATE_FOCUSED;
      else
        e.detail = ACC.STATE_FOCUSABLE | ACC.STATE_LINKED;
    }
  });
}
private void initAccessibleLabel() {

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.swt

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  public void getChildAtPoint(AccessibleControlEvent e) {
    e.childID = ACC.CHILDID_SELF;

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  public void getChildAtPoint(AccessibleControlEvent e) {
    Point pt = control.toControl(new Point(e.x, e.y));

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  public void getChildAtPoint(AccessibleControlEvent e) {
    e.childID = ACC.CHILDID_SELF;

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.swt

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  public void getChildAtPoint(AccessibleControlEvent e) {
    e.childID = ACC.CHILDID_SELF;

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getChildAtPoint(AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener (new AccessibleControlAdapter () {
  @Override
  public void getChildAtPoint (AccessibleControlEvent e) {

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

accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
  @Override
  public void getRole(AccessibleControlEvent e) {

相关文章