javax.accessibility
Interface AccessibleValue

All Known Implementing Classes:
AbstractButton.AccessibleAbstractButton sample code for javax.swing.AbstractButton.AccessibleAbstractButton definition code for javax.swing.AbstractButton.AccessibleAbstractButton , Button.AccessibleAWTButton sample code for java.awt.Button.AccessibleAWTButton definition code for java.awt.Button.AccessibleAWTButton , Checkbox.AccessibleAWTCheckbox sample code for java.awt.Checkbox.AccessibleAWTCheckbox definition code for java.awt.Checkbox.AccessibleAWTCheckbox , CheckboxMenuItem.AccessibleAWTCheckboxMenuItem sample code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem definition code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem , JButton.AccessibleJButton sample code for javax.swing.JButton.AccessibleJButton definition code for javax.swing.JButton.AccessibleJButton , JCheckBox.AccessibleJCheckBox sample code for javax.swing.JCheckBox.AccessibleJCheckBox definition code for javax.swing.JCheckBox.AccessibleJCheckBox , JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem sample code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem definition code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem , JInternalFrame.AccessibleJInternalFrame sample code for javax.swing.JInternalFrame.AccessibleJInternalFrame definition code for javax.swing.JInternalFrame.AccessibleJInternalFrame , JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon sample code for javax.swing.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon definition code for javax.swing.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon , JMenu.AccessibleJMenu sample code for javax.swing.JMenu.AccessibleJMenu definition code for javax.swing.JMenu.AccessibleJMenu , JMenuItem.AccessibleJMenuItem sample code for javax.swing.JMenuItem.AccessibleJMenuItem definition code for javax.swing.JMenuItem.AccessibleJMenuItem , JProgressBar.AccessibleJProgressBar sample code for javax.swing.JProgressBar.AccessibleJProgressBar definition code for javax.swing.JProgressBar.AccessibleJProgressBar , JRadioButton.AccessibleJRadioButton sample code for javax.swing.JRadioButton.AccessibleJRadioButton definition code for javax.swing.JRadioButton.AccessibleJRadioButton , JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem sample code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem definition code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem , JScrollBar.AccessibleJScrollBar sample code for javax.swing.JScrollBar.AccessibleJScrollBar definition code for javax.swing.JScrollBar.AccessibleJScrollBar , JSlider.AccessibleJSlider sample code for javax.swing.JSlider.AccessibleJSlider definition code for javax.swing.JSlider.AccessibleJSlider , JSpinner.AccessibleJSpinner sample code for javax.swing.JSpinner.AccessibleJSpinner definition code for javax.swing.JSpinner.AccessibleJSpinner , JSplitPane.AccessibleJSplitPane sample code for javax.swing.JSplitPane.AccessibleJSplitPane definition code for javax.swing.JSplitPane.AccessibleJSplitPane , JToggleButton.AccessibleJToggleButton sample code for javax.swing.JToggleButton.AccessibleJToggleButton definition code for javax.swing.JToggleButton.AccessibleJToggleButton , Menu.AccessibleAWTMenu sample code for java.awt.Menu.AccessibleAWTMenu definition code for java.awt.Menu.AccessibleAWTMenu , MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem , PopupMenu.AccessibleAWTPopupMenu sample code for java.awt.PopupMenu.AccessibleAWTPopupMenu definition code for java.awt.PopupMenu.AccessibleAWTPopupMenu , Scrollbar.AccessibleAWTScrollBar sample code for java.awt.Scrollbar.AccessibleAWTScrollBar definition code for java.awt.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 (see Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible ) and then calling the AccessibleContext.getAccessibleValue() sample code for javax.accessibility.AccessibleContext.getAccessibleValue() definition code for javax.accessibility.AccessibleContext.getAccessibleValue() method. If the return value is not null, the object supports this interface.

See Also:
Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , Accessible.getAccessibleContext() sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() , AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext , AccessibleContext.getAccessibleValue() sample code for javax.accessibility.AccessibleContext.getAccessibleValue() definition code for javax.accessibility.AccessibleContext.getAccessibleValue()

Method Summary
 Number sample code for java.lang.Number definition code for java.lang.Number getCurrentAccessibleValue sample code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue() definition code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue() ()
          Get the value of this object as a Number.
 Number sample code for java.lang.Number definition code for java.lang.Number getMaximumAccessibleValue sample code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue() ()
          Get the maximum value of this object as a Number.
 Number sample code for java.lang.Number definition code for java.lang.Number getMinimumAccessibleValue sample code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue() ()
          Get the minimum value of this object as a Number.
 boolean setCurrentAccessibleValue sample code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number) definition code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  n)
          Set the value of this object as a Number.
 

Method Detail

getCurrentAccessibleValue sample code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue() definition code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue()

Number sample code for java.lang.Number definition code for java.lang.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) sample code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number) definition code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number)

setCurrentAccessibleValue sample code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number) definition code for javax.accessibility.AccessibleValue.setCurrentAccessibleValue(java.lang.Number)

boolean setCurrentAccessibleValue(Number sample code for java.lang.Number definition code for java.lang.Number  n)
Set the value of this object as a Number.

Returns:
True if the value was set; else False
See Also:
getCurrentAccessibleValue() sample code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue() definition code for javax.accessibility.AccessibleValue.getCurrentAccessibleValue()

getMinimumAccessibleValue sample code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue()

Number sample code for java.lang.Number definition code for java.lang.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() sample code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue()

getMaximumAccessibleValue sample code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMaximumAccessibleValue()

Number sample code for java.lang.Number definition code for java.lang.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() sample code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue() definition code for javax.accessibility.AccessibleValue.getMinimumAccessibleValue()