java.awt

Class Scrollbar.AccessibleAWTScrollBar

protected class Scrollbar.AccessibleAWTScrollBar extends AccessibleAWTComponent implements AccessibleValue

This class provides accessibility support for the scrollbar.
Method Summary
AccessibleRolegetAccessibleRole()
Returns the role of this accessible object.
AccessibleStateSetgetAccessibleStateSet()
Returns the state set of this accessible object.
AccessibleValuegetAccessibleValue()
Returns an implementation of the AccessibleValue interface for this accessible object.
NumbergetCurrentAccessibleValue()
Returns the current value of this accessible object.
NumbergetMaximumAccessibleValue()
Returns the maximum acceptable accessible value used by this object.
NumbergetMinimumAccessibleValue()
Returns the minimum acceptable accessible value used by this object.
booleansetCurrentAccessibleValue(Number number)
Sets the current value of this accessible object to that supplied.

Method Detail

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the role of this accessible object.

Returns: the instance of AccessibleRole, which describes this object.

See Also: AccessibleRole

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Returns the state set of this accessible object.

Returns: a set of AccessibleStates which represent the current state of the accessible object.

See Also: AccessibleState AccessibleStateSet

getAccessibleValue

public AccessibleValue getAccessibleValue()
Returns an implementation of the AccessibleValue interface for this accessible object. In this case, the current instance is simply returned (with a more appropriate type), as it also implements the accessible value as well as the context.

Returns: the accessible value associated with this context.

See Also: AccessibleValue

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()
Returns the current value of this accessible object. In this case, this is the same as the value for the scrollbar, wrapped in an Integer object.

Returns: the numeric value of this scrollbar.

See Also: getCurrentAccessibleValue

getMaximumAccessibleValue

public Number getMaximumAccessibleValue()
Returns the maximum acceptable accessible value used by this object. In this case, this is the same as the maximum value of the scrollbar, wrapped in an object.

Returns: the maximum value of this scrollbar.

See Also: getMaximumAccessibleValue

getMinimumAccessibleValue

public Number getMinimumAccessibleValue()
Returns the minimum acceptable accessible value used by this object. In this case, this is the same as the minimum value of the scrollbar, wrapped in an object.

Returns: the minimum value of this scrollbar.

See Also: getMinimumAccessibleValue

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number number)
Sets the current value of this accessible object to that supplied. In this case, the value of the scrollbar is set, and this method always returns true.

Parameters: number the new accessible value.

Returns: true if the value was set.

See Also: setCurrentAccessibleValue