AccessibleControlListener interface.
Classes that wish to deal with AccessibleControlEvents 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. When returning a child identifier to a client, you may use CHILDID_NONE to indicate that no child or control has the required information.
Note
This adapter is typically used by implementors of a custom control to provide very detailed information about the control instance to accessibility clients.
AccessibleControlListener, AccessibleControlEvent, Sample code and further information
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | getChild(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getChildAtPoint(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getChildCount(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getChildren(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getDefaultAction(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getFocus(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getLocation(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getRole(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getSelection(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getState(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| public void | getValue(AccessibleControlEvent
an event object containing the following fields: e)
Implements org. |
| AccessibleControlAdapter | back to summary |
|---|---|
| public AccessibleControlAdapter() | |
| getChild | back to summary |
|---|---|
| public void getChild(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the accessible object for a child of the control by index or childID, or when a client requests the index of an accessible object in its parent. The childID field in the event object can be one of the following:
| |
| getChildAtPoint | back to summary |
|---|---|
| public void getChildAtPoint(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the identifier of the control child at the specified display coordinates. The default behavior is to do nothing.
Return the identifier of the child at display point (x, y)
in the
| |
| getChildCount | back to summary |
|---|---|
| public void getChildCount(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the number of children in the control. The default behavior is to do nothing.
Return the number of child items in the
| |
| getChildren | back to summary |
|---|---|
| public void getChildren(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the children, or visible children, of the control. The default behavior is to do nothing.
Return the children as an array of childIDs or accessibles in the
| |
| getDefaultAction | back to summary |
|---|---|
| public void getDefaultAction(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the default action of the control, or the default action of a child of the control. The default behavior is to do nothing. This string is typically a verb describing what the user does to it. For example, a Push Button's default action is "Press", a Check Button's is "Check" or "UnCheck", and List items have the default action "Double Click".
Return a string describing the default action of the specified
control or child in the
| |
| getFocus | back to summary |
|---|---|
| public void getFocus(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the identity of the child or control that has keyboard focus. The default behavior is to do nothing.
Return the identifier of the child that has focus in the
| |
| getLocation | back to summary |
|---|---|
| public void getLocation(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the location of the control, or the location of a child of the control. The default behavior is to do nothing.
Return a rectangle describing the location of the specified
control or child in the
| |
| getRole | back to summary |
|---|---|
| public void getRole(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the role of the control, or the role of a child of the control. The default behavior is to do nothing.
Return a role constant (constant defined in ACC beginning with ROLE_)
that describes the role of the specified control or child in the
| |
| getSelection | back to summary |
|---|---|
| public void getSelection(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the identity of the child or control that is currently selected. The default behavior is to do nothing.
Return the identifier of the selected child in the
| |
| getState | back to summary |
|---|---|
| public void getState(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the state of the control, or the state of a child of the control. The default behavior is to do nothing.
Return a state mask (mask bit constants defined in ACC beginning with STATE_)
that describes the current state of the specified control or child in the
| |
| getValue | back to summary |
|---|---|
| public void getValue(AccessibleControlEvent e) Implements org. Sent when an accessibility client requests the value of the control, or the value of a child of the control. The default behavior is to do nothing. Many controls do not return a value. Examples of controls that do are: Combo returns the text string, Text returns its contents, ProgressBar returns a string representing a percentage, and Tree items return a string representing their level in the tree.
Return a string describing the value of the specified control
or child in the
| |