APIdia Launch Partner
Top Description Methods
javax.accessibility

public Interface AccessibleValue

Known Direct Implementers
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon, javax.swing.JTabbedPane.Page, javax.swing.JProgressBar.AccessibleJProgressBar, javax.swing.JScrollBar.AccessibleJScrollBar, javax.swing.JSlider.AccessibleJSlider, javax.swing.JSpinner.AccessibleJSpinner, javax.swing.JSplitPane.AccessibleJSplitPane, java.awt.Button.AccessibleAWTButton, java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem, java.awt.MenuItem.AccessibleAWTMenuItem, java.awt.Checkbox.AccessibleAWTCheckbox, java.awt.Scrollbar.AccessibleAWTScrollBar

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) and then calling the AccessibleContext#getAccessibleValue method. If the return value is not null, the object supports this interface.
Authors
Peter Korn, Hans Muller, Willie Walker
See Also
Accessible, Accessible#getAccessibleContext, AccessibleContext, AccessibleContext#getAccessibleValue

Method Summary

Modifier and TypeMethod and Description
public Number

Returns:

value of the object
getCurrentAccessibleValue
()

Get the value of this object as a Number.

public Number

Returns:

maximum value of the object; null if this object does not have a maximum value
getMaximumAccessibleValue
()

Get the maximum value of this object as a Number.

public Number

Returns:

minimum value of the object; null if this object does not have a minimum value
getMinimumAccessibleValue
()

Get the minimum value of this object as a Number.

public boolean

Returns:

true if the value was set; else false
setCurrentAccessibleValue
(Number
the number to use for the value
n
)

Set the value of this object as a Number.

Method Detail

getCurrentAccessibleValueback to summary
public 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:Number

value of the object

See Also
setCurrentAccessibleValue
getMaximumAccessibleValueback to summary
public Number getMaximumAccessibleValue()

Get the maximum value of this object as a Number.

Returns:Number

maximum value of the object; null if this object does not have a maximum value

See Also
getMinimumAccessibleValue
getMinimumAccessibleValueback to summary
public Number getMinimumAccessibleValue()

Get the minimum value of this object as a Number.

Returns:Number

minimum value of the object; null if this object does not have a minimum value

See Also
getMaximumAccessibleValue
setCurrentAccessibleValueback to summary
public boolean setCurrentAccessibleValue(Number n)

Set the value of this object as a Number.

Parameters
n:Number

the number to use for the value

Returns:boolean

true if the value was set; else false

See Also
getCurrentAccessibleValue