Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.accessibility

Interface AccessibleValue

java.lang.Object
|
+--javax.accessibility.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:Author:See Also:

Method Summary

java.lang.NumbergetCurrentAccessibleValue()

Gets the current value of this object, or null if it has not been set.
java.lang.NumbergetMaximumAccessibleValue()

Gets the maximum value in the range of this object, or null if there is no maximum.
java.lang.NumbergetMinimumAccessibleValue()

Gets the minimum value in the range of this object, or null if there is no minimum.
booleansetCurrentAccessibleValue(java.lang.Number number)

Sets the current value of this object.

Method Details

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()

Gets the current value of this object, or null if it has not been set.

Returns:

See Also:


getMaximumAccessibleValue

public Number getMaximumAccessibleValue()

Gets the maximum value in the range of this object, or null if there is no maximum.

Returns:

See Also:


getMinimumAccessibleValue

public Number getMinimumAccessibleValue()

Gets the minimum value in the range of this object, or null if there is no minimum.

Returns:

See Also:


setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(java.lang.Number number)

Sets the current value of this object. Returns true if the number successfully changed.

Parameters:

Returns: