-
- 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
The AccessibleValue 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 the AccessibleValue interface by first obtaining its AccessibleContext (seeAccessible
) and then calling theAccessibleContext.getAccessibleValue()
method. If the return value is not null, the object supports this interface.
-
-
Method Summary
Methods Modifier and Type Method and Description Number
getCurrentAccessibleValue()
Get the value of this object as a Number.Number
getMaximumAccessibleValue()
Get the maximum value of this object as a Number.Number
getMinimumAccessibleValue()
Get the minimum value of this object as a Number.boolean
setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.
-
-
-
Method Detail
-
getCurrentAccessibleValue
Number getCurrentAccessibleValue()
Get the value of this object as a Number. If the value has not been set, the return value will be null.- Returns:
- value of the object
- See Also:
setCurrentAccessibleValue(java.lang.Number)
-
setCurrentAccessibleValue
boolean setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.- Returns:
- True if the value was set; else False
- See Also:
getCurrentAccessibleValue()
-
getMinimumAccessibleValue
Number getMinimumAccessibleValue()
Get the minimum value of this object as a Number.- 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 a Number.- Returns:
- Maximum value of the object; null if this object does not have a maximum value
- See Also:
getMinimumAccessibleValue()
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/accessibility/accessiblevalue.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.