AccessibleListener interface.
Classes that wish to deal with AccessibleEvents can
extend this class and override only the methods that they are
interested in.
Note
Accessibility clients use child identifiers to specify whether they want information about a control or one of its children. Child identifiers are increasing integers beginning with 0. The identifier CHILDID_SELF represents the control itself.
AccessibleListener, AccessibleEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | getDescription(AccessibleEvent
an event object containing the following fields: e)
Implements org. |
| public void | getHelp(AccessibleEvent
an event object containing the following fields: e)
Implements org. |
| public void | getKeyboardShortcut(AccessibleEvent
an event object containing the following fields: e)
Implements org. |
| public void | getName(AccessibleEvent
an event object containing the following fields: e)
Implements org. |
| AccessibleAdapter | back to summary |
|---|---|
| public AccessibleAdapter() | |
| getDescription | back to summary |
|---|---|
| public void getDescription(AccessibleEvent e) Implements org. Sent when an accessibility client requests a description of the control, or a description of a child of the control. The default behavior is to do nothing. This is a textual description of the control or child's visual appearance, which is typically only necessary if it cannot be determined from other properties such as role.
Return the description of the control or specified child in
the
| |
| getHelp | back to summary |
|---|---|
| public void getHelp(AccessibleEvent e) Implements org. Sent when an accessibility client requests the help string of the control, or the help string of a child of the control. The default behavior is to do nothing. The information in this property should be similar to the help provided by toolTipText. It describes what the control or child does or how to use it, as opposed to getDescription, which describes appearance.
Return the help string of the control or specified child in
the
| |
| getKeyboardShortcut | back to summary |
|---|---|
| public void getKeyboardShortcut(AccessibleEvent e) Implements org. Sent when an accessibility client requests the keyboard shortcut of the control, or the keyboard shortcut of a child of the control. The default behavior is to do nothing. A keyboard shortcut can either be a mnemonic, or an accelerator. As a general rule, if the control or child can receive keyboard focus, then you should expose its mnemonic, and if it cannot receive keyboard focus, then you should expose its accelerator.
Return the keyboard shortcut string of the control or specified child
in the
| |
| getName | back to summary |
|---|---|
| public void getName(AccessibleEvent e) Implements org. Sent when an accessibility client requests the name of the control, or the name of a child of the control. The default behavior is to do nothing.
Return the name of the control or specified child in the
| |