Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6216285

Accessible Actions available for a AccessibleComponent should be provided in the API.

XMLWordPrintable

      For Accessible Action there is no way to find out what the Accessible Actions for a component are unless you do it programmatically using getAccessibleActionDescription(), as shown below:

      AccessibleAction aa = ac.getAccessibleAction();
      if (aa == null) {
      System.out.println("getAccessibleAction should not return a null value for JButton");
      }
      int count = aa.getAccessibleActionCount();
      if (count != 1) {
      System.out.println("getAccessibleActionCount returned an incorrect value");
      }
      String aa_desc = aa.getAccessibleActionDescription(0);
      System.out.println("Accessible Action Description: " + aa_desc);

      I think the Java Doc for the Accessible Component should provide the what the Accessible Actions are for a component which implementd AccessibleAction.


      ###@###.### 2005-1-11 20:27:44 GMT

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: