AccessibleAction (Java SE 15 & JDK 15) (original) (raw)
All Known Implementing Classes:
[AbstractButton.AccessibleAbstractButton](../swing/AbstractButton.AccessibleAbstractButton.html "class in javax.swing")
, [AccessibleHyperlink](AccessibleHyperlink.html "class in javax.accessibility")
, [Button.AccessibleAWTButton](../../java/awt/Button.AccessibleAWTButton.html "class in java.awt")
, [Checkbox.AccessibleAWTCheckbox](../../java/awt/Checkbox.AccessibleAWTCheckbox.html "class in java.awt")
, [CheckboxMenuItem.AccessibleAWTCheckboxMenuItem](../../java/awt/CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.html "class in java.awt")
, [Choice.AccessibleAWTChoice](../../java/awt/Choice.AccessibleAWTChoice.html "class in java.awt")
, [JButton.AccessibleJButton](../swing/JButton.AccessibleJButton.html "class in javax.swing")
, [JCheckBox.AccessibleJCheckBox](../swing/JCheckBox.AccessibleJCheckBox.html "class in javax.swing")
, [JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem](../swing/JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem.html "class in javax.swing")
, [JComboBox.AccessibleJComboBox](../swing/JComboBox.AccessibleJComboBox.html "class in javax.swing")
, [JEditorPane.AccessibleJEditorPane](../swing/JEditorPane.AccessibleJEditorPane.html "class in javax.swing")
, [JEditorPane.AccessibleJEditorPaneHTML](../swing/JEditorPane.AccessibleJEditorPaneHTML.html "class in javax.swing")
, [JEditorPane.JEditorPaneAccessibleHypertextSupport](../swing/JEditorPane.JEditorPaneAccessibleHypertextSupport.html "class in javax.swing")
, [JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink](../swing/JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink.html "class in javax.swing")
, [JList.AccessibleJList.AccessibleJListChild](../swing/JList.AccessibleJList.AccessibleJListChild.html "class in javax.swing")
, [JMenu.AccessibleJMenu](../swing/JMenu.AccessibleJMenu.html "class in javax.swing")
, [JMenuItem.AccessibleJMenuItem](../swing/JMenuItem.AccessibleJMenuItem.html "class in javax.swing")
, [JPasswordField.AccessibleJPasswordField](../swing/JPasswordField.AccessibleJPasswordField.html "class in javax.swing")
, [JRadioButton.AccessibleJRadioButton](../swing/JRadioButton.AccessibleJRadioButton.html "class in javax.swing")
, [JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem](../swing/JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem.html "class in javax.swing")
, [JSpinner.AccessibleJSpinner](../swing/JSpinner.AccessibleJSpinner.html "class in javax.swing")
, [JTextArea.AccessibleJTextArea](../swing/JTextArea.AccessibleJTextArea.html "class in javax.swing")
, [JTextComponent.AccessibleJTextComponent](../swing/text/JTextComponent.AccessibleJTextComponent.html "class in javax.swing.text")
, [JTextField.AccessibleJTextField](../swing/JTextField.AccessibleJTextField.html "class in javax.swing")
, [JToggleButton.AccessibleJToggleButton](../swing/JToggleButton.AccessibleJToggleButton.html "class in javax.swing")
, [JTree.AccessibleJTree.AccessibleJTreeNode](../swing/JTree.AccessibleJTree.AccessibleJTreeNode.html "class in javax.swing")
, [Menu.AccessibleAWTMenu](../../java/awt/Menu.AccessibleAWTMenu.html "class in java.awt")
, [MenuItem.AccessibleAWTMenuItem](../../java/awt/MenuItem.AccessibleAWTMenuItem.html "class in java.awt")
, [PopupMenu.AccessibleAWTPopupMenu](../../java/awt/PopupMenu.AccessibleAWTPopupMenu.html "class in java.awt")
public interface AccessibleAction
The 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 itsAccessibleContext
(see Accessible) and then calling theAccessibleContext.getAccessibleAction() method. If the return value is not null
, the object supports this interface.
See Also:
Accessible, Accessible.getAccessibleContext(), AccessibleContext, AccessibleContext.getAccessibleAction()
Field Summary
Fields
Modifier and Type | Field | Description |
---|---|---|
static String | CLICK | An action which causes a component to execute its default action. |
static String | DECREMENT | An action which decrements a value. |
static String | INCREMENT | An action which increments a value. |
static String | TOGGLE_EXPAND | An action which causes a tree node to collapse if expanded and expand if collapsed. |
static String | TOGGLE_POPUP | An action which causes a popup to become visible if it is hidden and hidden if it is visible. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
boolean | doAccessibleAction(int i) | Performs the specified action on the object. |
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. |
String | getAccessibleActionDescription(int i) | Returns a description of the specified action of the object. |
Field Details
TOGGLE_EXPAND
static final String TOGGLE_EXPAND
An action which causes a tree node to collapse if expanded and expand if collapsed.
Since:
1.5INCREMENT
static final String INCREMENT
An action which increments a value.
Since:
1.5DECREMENT
static final String DECREMENT
An action which decrements a value.
Since:
1.5CLICK
static final String CLICK
An action which causes a component to execute its default action.
Since:
1.6Method Details
getAccessibleActionCount
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.
Returns:
the zero-based number of actions in this objectgetAccessibleActionDescription
String getAccessibleActionDescription(int i)
Returns a description of the specified action of the object.
Parameters:
i
- zero-based index of the actions
Returns:
aString
description of the action
See Also:
getAccessibleActionCount()doAccessibleAction
boolean doAccessibleAction(int i)
Performs the specified action on the object.
Parameters:
i
- zero-based index of actions
Returns:
true
if the action was performed; otherwisefalse
See Also:
getAccessibleActionCount()