Example usage for javax.accessibility AccessibleValue getMinimumAccessibleValue

List of usage examples for javax.accessibility AccessibleValue getMinimumAccessibleValue

Introduction

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

Prototype

public Number getMinimumAccessibleValue();

Source Link

Document

Get the minimum 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;//  ww w .  j av  a  2s  . c o m
    }

    int nChildren = ac.getAccessibleChildrenCount();

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