java.awt

Class Checkbox.AccessibleAWTCheckbox

protected class Checkbox.AccessibleAWTCheckbox extends AccessibleAWTComponent implements ItemListener, AccessibleAction, AccessibleValue

This class provides accessibility support for the checkbox.
Constructor Summary
AccessibleAWTCheckbox()
Default constructor which simply calls the super class for generic component accessibility handling.
Method Summary
booleandoAccessibleAction(int i)
Executes the action with the specified id.
AccessibleActiongetAccessibleAction()
Returns an implementation of the AccessibleAction interface for this accessible object.
intgetAccessibleActionCount()
Returns the number of actions associated with this accessible object.
StringgetAccessibleActionDescription(int i)
Returns a description of the action with the supplied id.
AccessibleRolegetAccessibleRole()
Returns the role of this accessible object.
AccessibleStateSetgetAccessibleStateSet()
Returns the state set of this accessible object.
AccessibleValuegetAccessibleValue()
Returns an implementation of the AccessibleValue interface for this accessible object.
NumbergetCurrentAccessibleValue()
Returns the current value of this accessible object.
NumbergetMaximumAccessibleValue()
Returns the maximum acceptable accessible value used by this object, or null if no maximum value exists.
NumbergetMinimumAccessibleValue()
Returns the minimum acceptable accessible value used by this object, or null if no minimum value exists.
voiditemStateChanged(ItemEvent event)
Captures changes to the state of the checkbox and fires appropriate accessible property change events.
booleansetCurrentAccessibleValue(Number number)
Sets the current value of this accessible object to that supplied.

Constructor Detail

AccessibleAWTCheckbox

public AccessibleAWTCheckbox()
Default constructor which simply calls the super class for generic component accessibility handling.

Method Detail

doAccessibleAction

public boolean doAccessibleAction(int i)
Executes the action with the specified id. This default implementation simply returns false.

Parameters: i the id of the action to perform.

Returns: true if the action was performed.

See Also: AccessibleAction

getAccessibleAction

public AccessibleAction getAccessibleAction()
Returns an implementation of the AccessibleAction interface for this accessible object. In this case, the current instance is simply returned (with a more appropriate type), as it also implements the accessible action as well as the context.

Returns: the accessible action associated with this context.

See Also: AccessibleAction

getAccessibleActionCount

public int getAccessibleActionCount()
Returns the number of actions associated with this accessible object. This default implementation returns 0.

Returns: the number of accessible actions available.

See Also: getAccessibleActionCount

getAccessibleActionDescription

public String getAccessibleActionDescription(int i)
Returns a description of the action with the supplied id. This default implementation always returns null.

Parameters: i the id of the action whose description should be retrieved.

Returns: a String describing the action.

See Also: AccessibleAction

getAccessibleRole

public AccessibleRole getAccessibleRole()
Returns the role of this accessible object.

Returns: the instance of AccessibleRole, which describes this object.

See Also: AccessibleRole

getAccessibleStateSet

public AccessibleStateSet getAccessibleStateSet()
Returns the state set of this accessible object.

Returns: a set of AccessibleStates which represent the current state of the accessible object.

See Also: AccessibleState AccessibleStateSet

getAccessibleValue

public AccessibleValue getAccessibleValue()
Returns an implementation of the AccessibleValue interface for this accessible object. In this case, the current instance is simply returned (with a more appropriate type), as it also implements the accessible value as well as the context.

Returns: the accessible value associated with this context.

See Also: AccessibleValue

getCurrentAccessibleValue

public Number getCurrentAccessibleValue()
Returns the current value of this accessible object. If no value has been set, null is returned. This default implementation always returns null, regardless.

Returns: the numeric value of this object, or null if no value has been set.

See Also: getCurrentAccessibleValue

getMaximumAccessibleValue

public Number getMaximumAccessibleValue()
Returns the maximum acceptable accessible value used by this object, or null if no maximum value exists. This default implementation always returns null.

Returns: the maximum acceptable accessible value, or null if there is no maximum.

See Also: getMaximumAccessibleValue

getMinimumAccessibleValue

public Number getMinimumAccessibleValue()
Returns the minimum acceptable accessible value used by this object, or null if no minimum value exists. This default implementation always returns null.

Returns: the minimum acceptable accessible value, or null if there is no minimum.

See Also: getMinimumAccessibleValue

itemStateChanged

public void itemStateChanged(ItemEvent event)
Captures changes to the state of the checkbox and fires appropriate accessible property change events.

Parameters: event the event fired.

See Also: itemStateChanged

setCurrentAccessibleValue

public boolean setCurrentAccessibleValue(Number number)
Sets the current value of this accessible object to that supplied. In this default implementation, the value is never set and the method always returns false.

Parameters: number the new accessible value.

Returns: true if the value was set.

See Also: setCurrentAccessibleValue