javax.accessibility

Interface AccessibleValue

public interface AccessibleValue

If an object implements this interface then it must be able to control a numerical value. For example, a scroll bar has a position represented by a number. Accessibility software can use the implementations of this interface to change the associated value.

The AccessibleContext.getAccessibleValue() method should return null if an object does not implement this interface.

Since: 1.2

See Also: Accessible AccessibleContext getAccessibleValue

UNKNOWN: updated to 1.4

Method Summary
NumbergetCurrentAccessibleValue()
Gets the current value of this object, or null if it has not been set.
NumbergetMaximumAccessibleValue()
Gets the maximum value in the range of this object, or null if there is no maximum.
NumbergetMinimumAccessibleValue()
Gets the minimum value in the range of this object, or null if there is no minimum.
booleansetCurrentAccessibleValue(Number number)
Sets the current value of this object.

Method Detail

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()
Gets the current value of this object, or null if it has not been set.

Returns: the current value, or null

See Also: setCurrentAccessibleValue

getMaximumAccessibleValue

public Number getMaximumAccessibleValue()
Gets the maximum value in the range of this object, or null if there is no maximum.

Returns: the maximum

See Also: getMinimumAccessibleValue

getMinimumAccessibleValue

public Number getMinimumAccessibleValue()
Gets the minimum value in the range of this object, or null if there is no minimum.

Returns: the minimum

See Also: getMaximumAccessibleValue

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number number)
Sets the current value of this object. Returns true if the number successfully changed.

Parameters: number the new value

Returns: true on success