-
- 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
,JSpinner.AccessibleJSpinner
,JSplitPane.AccessibleJSplitPane
,JToggleButton.AccessibleJToggleButton
,Menu.AccessibleAWTMenu
,MenuItem.AccessibleAWTMenuItem
,PopupMenu.AccessibleAWTPopupMenu
,Scrollbar.AccessibleAWTScrollBar
public interface AccessibleValue
TheAccessibleValue
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 theAccessibleValue
interface by first obtaining itsAccessibleContext
(seeAccessible
) and then calling theAccessibleContext.getAccessibleValue()
method. If the return value is notnull
, the object supports this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Number
getCurrentAccessibleValue()
Get the value of this object as aNumber
.Number
getMaximumAccessibleValue()
Get the maximum value of this object as aNumber
.Number
getMinimumAccessibleValue()
Get the minimum value of this object as aNumber
.boolean
setCurrentAccessibleValue(Number n)
Set the value of this object as aNumber
.
-
-
-
Method Detail
-
getCurrentAccessibleValue
Number getCurrentAccessibleValue()
Get the value of this object as aNumber
. If the value has not been set, the return value will benull
.- Returns:
- value of the object
- See Also:
setCurrentAccessibleValue(java.lang.Number)
-
setCurrentAccessibleValue
boolean setCurrentAccessibleValue(Number n)
Set the value of this object as aNumber
.- Parameters:
n
- the number to use for the value- Returns:
true
if the value was set; elsefalse
- See Also:
getCurrentAccessibleValue()
-
getMinimumAccessibleValue
Number getMinimumAccessibleValue()
Get the minimum value of this object as aNumber
.- Returns:
- minimum value of the object;
null
if this object does not have a minimum value - See Also:
getMaximumAccessibleValue()
-
getMaximumAccessibleValue
Number getMaximumAccessibleValue()
Get the maximum value of this object as aNumber
.- Returns:
- maximum value of the object;
null
if this object does not have a maximum value - See Also:
getMinimumAccessibleValue()
-
-