Package org.eclipse.swt.accessibility

Examples of org.eclipse.swt.accessibility.AccessibleAdapter


    return appToolTipText;
  }

  private void initAccessible() {
    Accessible accessible = getAccessible();
    accessible.addAccessibleListener(new AccessibleAdapter() {
      @Override
      public void getName(AccessibleEvent e) {
        e.result = getText();
      }
View Full Code Here


    else
      accessibleName = name;

    /* Apply Accessible Name */
    if (control != null && !control.isDisposed()) {
      control.getAccessible().addAccessibleListener(new AccessibleAdapter() {
        @Override
        public void getName(AccessibleEvent e) {
          if (control instanceof Tree || control instanceof Table) {
            if (e.childID == ACC.CHILDID_SELF)
              e.result = accessibleName;
View Full Code Here

    /* Register this Input Field to Context Service */
    Controller.getDefault().getContextService().registerInputField(fFilterText);

    /* Override Accessible */
    fFilterText.getAccessible().addAccessibleListener(new AccessibleAdapter() {
      @Override
      public void getName(AccessibleEvent e) {
        String filterTextString = fFilterText.getText();
        if (filterTextString.length() == 0)
          e.result = fInitialText;
View Full Code Here

    return appToolTipText;
  }

  private void initAccessible() {
    Accessible accessible = getAccessible();
    accessible.addAccessibleListener(new AccessibleAdapter() {
      @Override
      public void getName(AccessibleEvent e) {
        e.result = getText();
      }
View Full Code Here

    return appToolTipText;
  }

  private void initAccessible() {
    Accessible accessible = getAccessible();
    accessible.addAccessibleListener(new AccessibleAdapter() {
      @Override
      public void getName(AccessibleEvent e) {
        e.result = getText();
      }
View Full Code Here

    /* Register this Input Field to Context Service */
    Controller.getDefault().getContextService().registerInputField(fFilterText);

    /* Override Accessible */
    fFilterText.getAccessible().addAccessibleListener(new AccessibleAdapter() {
      @Override
      public void getName(AccessibleEvent e) {
        String filterTextString = fFilterText.getText();
        if (filterTextString.length() == 0)
          e.result = fInitialText;
View Full Code Here

                activeImage.dispose();
                pressedImage.dispose();
            }
        });
        clearButton.getAccessible().addAccessibleListener(
            new AccessibleAdapter() {
                public void getName(AccessibleEvent e) {
                    e.result= WorkbenchMessages.FilteredTree_AccessibleListenerClearButton;
                }
        });
        clearButton.getAccessible().addAccessibleControlListener(
View Full Code Here

   *
   * @param label
   * @param image
   */
  private void addAccessibleListeners(Label label, final Image image) {
    label.getAccessible().addAccessibleListener(new AccessibleAdapter() {
      public void getName(AccessibleEvent event) {
        final String accessibleMessage = getAccessibleMessageFor(image);
        if (accessibleMessage == null) {
          return;
        }
View Full Code Here

                    fColor.dispose();
                    fColor = null;
                }
            }
        });
        fButton.getAccessible().addAccessibleListener(new AccessibleAdapter() {
            /*
             * (non-Javadoc)
             *
             * @see org.eclipse.swt.accessibility.AccessibleAdapter#getName(org.eclipse.swt.accessibility.AccessibleEvent)
             */
 
View Full Code Here

      }

    });
    viewer.getControl().addListener(SWT.FocusIn, listener);
    viewer.getControl().getAccessible().addAccessibleListener(
        new AccessibleAdapter() {
          public void getName(AccessibleEvent event) {
            ViewerCell cell = getFocusCell();
            if (cell == null)
              return;
           
View Full Code Here

TOP

Related Classes of org.eclipse.swt.accessibility.AccessibleAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.