javax.accessibility
Interface AccessibleValue

All Known Implementing Classes:
AbstractButton.AccessibleAbstractButton, Button.AccessibleAWTButton, Checkbox.AccessibleAWTCheckbox, CheckboxMenuItem.AccessibleAWTCheckboxMenuItem, JButton.AccessibleJButton, JCheckBox.AccessibleJCheckBox, JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem, JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon, JMenu.AccessibleJMenu, JMenuItem.AccessibleJMenuItem, JProgressBar.AccessibleJProgressBar, JRadioButton.AccessibleJRadioButton, JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem, JScrollBar.AccessibleJScrollBar, JSlider.AccessibleJSlider, JSplitPane.AccessibleJSplitPane, JToggleButton.AccessibleJToggleButton, Menu.AccessibleAWTMenu, MenuItem.AccessibleAWTMenuItem, PopupMenu.AccessibleAWTPopupMenu, Scrollbar.AccessibleAWTScrollBar

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, AccessibleContext.getAccessibleValue()

Method Summary
 Number getCurrentAccessibleValue()
          Gets the current value of this object, or null if it has not been set.
 Number getMaximumAccessibleValue()
          Gets the maximum value in the range of this object, or null if there is no maximum.
 Number getMinimumAccessibleValue()
          Gets the minimum value in the range of this object, or null if there is no minimum.
 boolean setCurrentAccessibleValue(Number number)
          Sets the current value of this object.
 

Method Detail

getCurrentAccessibleValue

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(Number)

setCurrentAccessibleValue

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

getMinimumAccessibleValue

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()

getMaximumAccessibleValue

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()