public interface AccessibleValue
The AccessibleValue interface should be supported by any object that supports a numerical value (e.g., a scroll bar). This interface provides the standard mechanism for an assistive technology to determine and set the numerical value as well as get the minimum and maximum values. Applications can determine if an object supports the AccessibleValue interface by first obtaining its AccessibleContext (see Accessible
) and then calling the AccessibleContext.getAccessibleValue()
method. If the return value is not null, the object supports this interface.
Accessible
, Accessible.getAccessibleContext()
, AccessibleContext
, AccessibleContext.getAccessibleValue()
Number getCurrentAccessibleValue()
Get the value of this object as a Number. If the value has not been set, the return value will be null.
setCurrentAccessibleValue(java.lang.Number)
boolean setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.
n
- the number to use for the valuegetCurrentAccessibleValue()
Number getMinimumAccessibleValue()
Get the minimum value of this object as a Number.
getMaximumAccessibleValue()
Number getMaximumAccessibleValue()
Get the maximum value of this object as a Number.
getMinimumAccessibleValue()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.