AccessibleAction interface should be supported by any object that
can perform one or more actions. This interface provides the standard
mechanism for an assistive technology to determine what those actions are as
well as tell the object to perform them. Any object that can be manipulated
should support this interface. Applications can determine if an object
supports the AccessibleAction interface by first obtaining its
AccessibleContext (see Accessible) and then calling the
AccessibleContext#getAccessibleAction method. If the return value is
not null, the object supports this interface.
Accessible, Accessible#getAccessibleContext, AccessibleContext, AccessibleContext#getAccessibleAction
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CLICK
An action which causes a component to execute its default action. |
| public static final String | DECREMENT
An action which decrements a value. |
| public static final String | INCREMENT
An action which increments a value. |
| public static final String | TOGGLE_EXPAND
An action which causes a tree node to collapse if expanded and expand if collapsed. |
| public static final String | TOGGLE_POPUP
An action which causes a popup to become visible if it is hidden and hidden if it is visible. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the action was performed; otherwise falsezero-based index of actions i)Performs the specified action on the object. |
| public int | Returns: the zero-based number of actions in this objectReturns the number of accessible actions available in this object If there are more than one, the first one is considered the "default" action of the object. |
| public String | Returns: aString description of the actionzero-based index of the actions i)Returns a description of the specified action of the object. |
| CLICK | back to summary |
|---|---|
| public static final String CLICK An action which causes a component to execute its default action.
| |
| DECREMENT | back to summary |
|---|---|
| public static final String DECREMENT An action which decrements a value.
| |
| INCREMENT | back to summary |
|---|---|
| public static final String INCREMENT An action which increments a value.
| |
| TOGGLE_EXPAND | back to summary |
|---|---|
| public static final String TOGGLE_EXPAND An action which causes a tree node to collapse if expanded and expand if collapsed.
| |
| TOGGLE_POPUP | back to summary |
|---|---|
| public static final String TOGGLE_POPUP An action which causes a popup to become visible if it is hidden and hidden if it is visible.
| |
| doAccessibleAction | back to summary |
|---|---|
| public boolean doAccessibleAction(int i) Performs the specified action on the object.
| |
| getAccessibleActionCount | back to summary |
|---|---|
| public int getAccessibleActionCount() Returns the number of accessible actions available in this object If there are more than one, the first one is considered the "default" action of the object.
| |
| getAccessibleActionDescription | back to summary |
|---|---|
| public String getAccessibleActionDescription(int i) Returns a description of the specified action of the object.
| |