Example usage for javax.accessibility AccessibleAction getAccessibleActionDescription

List of usage examples for javax.accessibility AccessibleAction getAccessibleActionDescription

Introduction

In this page you can find the example usage for javax.accessibility AccessibleAction getAccessibleActionDescription.

Prototype

public String getAccessibleActionDescription(int i);

Source Link

Document

Returns a description of the specified action of the object.

Usage

From source file:MainClass.java

void dumpActionInfo(AccessibleContext ac) {
    AccessibleAction aa = ac.getAccessibleAction();

    if (aa != null) {
        String s = ac.getAccessibleName();
        System.out.println(s);//from w ww. j a va  2s. c  o  m

        int count = aa.getAccessibleActionCount();

        for (int i = 0; i < count; i++) {
            s = aa.getAccessibleActionDescription(i);
            System.out.println("Description = " + s);
        }
    }

    int nChildren = ac.getAccessibleChildrenCount();

    for (int i = 0; i < nChildren; i++)
        dumpActionInfo(ac.getAccessibleChild(i).getAccessibleContext());
}