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
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
(see Accessible
) and then calling the AccessibleContext.getAccessibleValue()
method. If the return value is not null
, the object supports this interface.Modifier and Type | Method | 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 |
Set the value of this object as a Number . |
Number getCurrentAccessibleValue()
Number
. If the value has not been set, the return value will be null
.boolean setCurrentAccessibleValue(Number n)
Number
.n
- the number to use for the valuetrue
if the value was set; else false
Number getMinimumAccessibleValue()
Number
.null
if this object does not have a minimum valueNumber getMaximumAccessibleValue()
Number
.null
if this object does not have a maximum value
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/accessibility/AccessibleValue.html