Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.accessibility.AccessibleContext
java.awt.Component.AccessibleAWTComponent
java.awt.Checkbox.AccessibleAWTCheckbox
protected class Checkbox.AccessibleAWTCheckbox
extends Component.AccessibleAWTComponent
implements ItemListener, AccessibleAction, AccessibleValue
Nested Class Summary |
Nested classes/interfaces inherited from class java.awt.Component.AccessibleAWTComponent | |
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler , Component.AccessibleAWTComponent.AccessibleAWTFocusHandler |
Field Summary |
Fields inherited from class java.awt.Component.AccessibleAWTComponent | |
accessibleAWTComponentHandler , accessibleAWTFocusHandler |
Fields inherited from interface javax.accessibility.AccessibleAction | |
CLICK , DECREMENT , INCREMENT , TOGGLE_EXPAND , TOGGLE_POPUP |
Constructor Summary | |
|
Method Summary | |
boolean |
|
AccessibleAction |
|
int |
|
String |
|
AccessibleRole |
|
AccessibleStateSet |
|
AccessibleValue |
|
Number |
|
Number |
|
Number |
|
void |
|
boolean |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public AccessibleAWTCheckbox()
Default constructor which simply calls the super class for generic component accessibility handling.
public boolean doAccessibleAction(int i)
Executes the action with the specified id. This default implementation simply returns false.
- Specified by:
- doAccessibleAction in interface AccessibleAction
- Parameters:
i
- the id of the action to perform.
- Returns:
- true if the action was performed.
public AccessibleAction getAccessibleAction()
Returns an implementation of theAccessibleAction
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.
- Overrides:
- getAccessibleAction in interface AccessibleContext
- Returns:
- the accessible action associated with this context.
- See Also:
AccessibleAction
public int getAccessibleActionCount()
Returns the number of actions associated with this accessible object. This default implementation returns 0.
- Specified by:
- getAccessibleActionCount in interface AccessibleAction
- Returns:
- the number of accessible actions available.
public String getAccessibleActionDescription(int i)
Returns a description of the action with the supplied id. This default implementation always returns null.
- Specified by:
- getAccessibleActionDescription in interface AccessibleAction
- Parameters:
i
- the id of the action whose description should be retrieved.
- Returns:
- a
String
describing the action.
public AccessibleRole getAccessibleRole()
Returns the role of this accessible object.
- Overrides:
- getAccessibleRole in interface Component.AccessibleAWTComponent
- Returns:
- the instance of
AccessibleRole
, which describes this object.
- See Also:
AccessibleRole
public AccessibleStateSet getAccessibleStateSet()
Returns the state set of this accessible object.
- Overrides:
- getAccessibleStateSet in interface Component.AccessibleAWTComponent
- Returns:
- a set of
AccessibleState
s which represent the current state of the accessible object.
- See Also:
AccessibleState
,AccessibleStateSet
public AccessibleValue getAccessibleValue()
Returns an implementation of theAccessibleValue
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.
- Overrides:
- getAccessibleValue in interface AccessibleContext
- Returns:
- the accessible value associated with this context.
- See Also:
AccessibleValue
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.
- Specified by:
- getCurrentAccessibleValue in interface AccessibleValue
- Returns:
- the numeric value of this object, or null if no value has been set.
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.
- Specified by:
- getMaximumAccessibleValue in interface AccessibleValue
- Returns:
- the maximum acceptable accessible value, or null if there is no maximum.
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.
- Specified by:
- getMinimumAccessibleValue in interface AccessibleValue
- Returns:
- the minimum acceptable accessible value, or null if there is no minimum.
public void itemStateChanged(ItemEvent event)
Captures changes to the state of the checkbox and fires appropriate accessible property change events.
- Specified by:
- itemStateChanged in interface ItemListener
- Parameters:
event
- the event fired.
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.
- Specified by:
- setCurrentAccessibleValue in interface AccessibleValue
- Parameters:
number
- the new accessible value.
- Returns:
- true if the value was set.