Example usage for javax.accessibility AccessibleContext getAccessibleValue

List of usage examples for javax.accessibility AccessibleContext getAccessibleValue

Introduction

In this page you can find the example usage for javax.accessibility AccessibleContext getAccessibleValue.

Prototype

public AccessibleValue getAccessibleValue() 

Source Link

Document

Gets the AccessibleValue associated with this object that supports a Numerical value.

Usage

From source file:MainClass.java

void dumpValueInfo(AccessibleContext ac) {
    AccessibleValue av = ac.getAccessibleValue();

    if (av != null) {
        System.out.println("Minimum value = " + av.getMinimumAccessibleValue());
        System.out.println("Current value = " + av.getCurrentAccessibleValue());
        System.out.println("Maximum value = " + av.getMaximumAccessibleValue());

        return;/*from w w  w.  j ava2s .co m*/
    }

    int nChildren = ac.getAccessibleChildrenCount();

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