Example usage for javax.accessibility AccessibleValue getMaximumAccessibleValue

List of usage examples for javax.accessibility AccessibleValue getMaximumAccessibleValue

Introduction

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

Prototype

public Number getMaximumAccessibleValue();

Source Link

Document

Get the maximum 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;/*  www.  ja v a2 s .c  o  m*/
    }

    int nChildren = ac.getAccessibleChildrenCount();

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