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
| Modifier and Type | Method and Description |
|---|---|
| public Number | |
| public Number | Returns: maximum value of the object;null if this object does not
have a maximum valueGet the maximum value of this object as a |
| public Number | Returns: minimum value of the object;null if this object does not
have a minimum valueGet the minimum value of this object as a |
| public boolean | Returns: true if the value was set; else falsethe number to use for the value n)Set the value of this object as a |
| getCurrentAccessibleValue | back to summary |
|---|---|
| public Number getCurrentAccessibleValue() Get the value of this object as a
| |
| getMaximumAccessibleValue | back to summary |
|---|---|
| public Number getMaximumAccessibleValue() Get the maximum value of this object as a
| |
| getMinimumAccessibleValue | back to summary |
|---|---|
| public Number getMinimumAccessibleValue() Get the minimum value of this object as a
| |
| setCurrentAccessibleValue | back to summary |
|---|---|
| public boolean setCurrentAccessibleValue(Number n) Set the value of this object as a
| |