Example usage for javax.accessibility AccessibleValue getCurrentAccessibleValue

List of usage examples for javax.accessibility AccessibleValue getCurrentAccessibleValue

Introduction

In this page you can find the example usage for javax.accessibility AccessibleValue getCurrentAccessibleValue.

Prototype

public Number getCurrentAccessibleValue();

Source Link

Document

Get the value of this object as a Number .

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;//w  w  w.  j  a v a2 s . c  om
    }

    int nChildren = ac.getAccessibleChildrenCount();

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