getAccessible, and then add an accessible listener
to override simple items like the name and help string, or they
can add an accessible control listener to override complex items.
As a rule of thumb, an application would only want to use the
accessible control listener to implement accessibility for a
custom control.
Control#getAccessible, AccessibleListener, AccessibleEvent, AccessibleControlListener, AccessibleControlEvent, Accessibility snippets, Sample code and further information
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv AccessibleObject | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv List | |
| pack-priv Control | |
| pack-priv Accessible | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| public | Accessible(Accessible
the Accessible parent, which must not be null parent)Constructs a new instance of this class given its parent. |
| protected | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAccessibleActionListener(AccessibleActionListener
the listener that should be notified when the receiver
is asked for listener)AccessibleActionListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleAttributeListener(AccessibleAttributeListener
the listener that should be notified when the receiver
is asked for listener)AccessibleAttributeListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleControlListener(AccessibleControlListener
the listener that should be notified when the receiver
is asked for custom control specific information listener)Adds the listener to the collection of listeners who will be notified when an accessible client asks for custom control specific information. |
| public void | addAccessibleEditableTextListener(AccessibleEditableTextListener
the listener that should be notified when the receiver
is asked for listener)AccessibleEditableTextListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleHyperlinkListener(AccessibleHyperlinkListener
the listener that should be notified when the receiver
is asked for listener)AccessibleHyperlinkListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleListener(AccessibleListener
the listener that should be notified when the receiver
is asked for a name, description, help, or keyboard shortcut string listener)Adds the listener to the collection of listeners who will be notified when an accessible client asks for certain strings, such as name, description, help, or keyboard shortcut. |
| public void | addAccessibleTableCellListener(AccessibleTableCellListener
the listener that should be notified when the receiver
is asked for listener)AccessibleTableCellListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleTableListener(AccessibleTableListener
the listener that should be notified when the receiver
is asked for listener)AccessibleTableListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addAccessibleTextListener(AccessibleTextListener
the listener that should be notified when the receiver
is asked for custom text control specific information listener)Adds the listener to the collection of listeners who will be notified when an accessible client asks for custom text control specific information. |
| public void | addAccessibleValueListener(AccessibleValueListener
the listener that should be notified when the receiver
is asked for listener)AccessibleValueListener interface propertiesAdds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | addRelation(int
an type, Accessible ACC constant beginning with RELATION_* indicating the type of relationthe accessible that is the target for this relation target)Adds a relation with the specified type and target to the receiver's set of relations. |
| pack-priv void | |
| pack-priv static Accessible | |
| pack-priv void | |
| public void | dispose()
Disposes of the operating system resources associated with the receiver, and removes the receiver from its parent's list of children. |
| pack-priv AccessibleObject | |
| public Control | |
| pack-priv long | |
| public void | internal_dispose_Accessible()
Invokes platform specific functionality to dispose an accessible object. |
| public static Accessible | Returns: the platform specific accessible objectthe control to get the accessible object for control)Invokes platform specific functionality to allocate a new accessible object. |
| pack-priv boolean | |
| pack-priv void | |
| public void | removeAccessibleActionListener(AccessibleActionListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleActionListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleAttributeListener(AccessibleAttributeListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleAttributeListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleControlListener(AccessibleControlListener
the listener that should no longer be notified when the receiver
is asked for custom control specific information listener)Removes the listener from the collection of listeners who will be notified when an accessible client asks for custom control specific information. |
| public void | removeAccessibleEditableTextListener(AccessibleEditableTextListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleEditableTextListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleHyperlinkListener(AccessibleHyperlinkListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleHyperlinkListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleListener(AccessibleListener
the listener that should no longer be notified when the receiver
is asked for a name, description, help, or keyboard shortcut string listener)Removes the listener from the collection of listeners who will be notified when an accessible client asks for certain strings, such as name, description, help, or keyboard shortcut. |
| public void | removeAccessibleTableCellListener(AccessibleTableCellListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleTableCellListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleTableListener(AccessibleTableListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleTableListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeAccessibleTextListener(AccessibleTextListener
the listener that should no longer be notified when the receiver
is asked for custom text control specific information listener)Removes the listener from the collection of listeners who will be notified when an accessible client asks for custom text control specific information. |
| public void | removeAccessibleValueListener(AccessibleValueListener
the listener that should no longer be notified when the receiver
is asked for listener)AccessibleValueListener interface propertiesRemoves the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the |
| public void | removeRelation(int
an type, Accessible ACC constant beginning with RELATION_* indicating the type of relationthe accessible that is the target for this relation target)Removes the relation with the specified type and target from the receiver's set of relations. |
| public void | selectionChanged()
Sends a message to accessible clients that the child selection within a custom container control has changed. |
| public void | sendEvent(int
an event, Object ACC constant beginning with EVENT_* indicating the message to sendan object containing event-specific data, or null if there is no event-specific data
(eventData is specified in the documentation for individual ACC.EVENT_* constants) eventData)Sends a message with event-specific data to accessible clients indicating that something has changed within a custom control. |
| public void | sendEvent(int
an event, Object ACC constant beginning with EVENT_* indicating the message to sendan object containing event-specific data, or null if there is no event-specific data
(eventData is specified in the documentation for individual ACC.EVENT_* constants) eventData, int an identifier specifying a child of the control childID)Sends a message with event-specific data and a childID to accessible clients, indicating that something has changed within a custom control. |
| public void | setFocus(int
an identifier specifying a child of the control childID)Sends a message to accessible clients indicating that the focus has changed within a custom control. |
| public void | textCaretMoved(int
the new caret index within the control index)Sends a message to accessible clients that the text caret has moved within a custom control. |
| public void | textChanged(int
the type of change, one of type, int ACC.TEXT_INSERT
or ACC.TEXT_DELETEthe text index within the control where the insertion or deletion begins startIndex, int the non-negative length in characters of the insertion or deletion length)Sends a message to accessible clients that the text within a custom control has changed. |
| public void | textSelectionChanged()
Sends a message to accessible clients that the text selection has changed within a custom control. |
| accessibleActionListeners | back to summary |
|---|---|
| pack-priv List<AccessibleActionListener> accessibleActionListeners | |
| accessibleAttributeListeners | back to summary |
|---|---|
| pack-priv List<AccessibleAttributeListener> accessibleAttributeListeners | |
| accessibleControlListeners | back to summary |
|---|---|
| pack-priv List<AccessibleControlListener> accessibleControlListeners | |
| accessibleEditableTextListeners | back to summary |
|---|---|
| pack-priv List<AccessibleEditableTextListener> accessibleEditableTextListeners | |
| accessibleHyperlinkListeners | back to summary |
|---|---|
| pack-priv List<AccessibleHyperlinkListener> accessibleHyperlinkListeners | |
| accessibleListeners | back to summary |
|---|---|
| pack-priv List<AccessibleListener> accessibleListeners | |
| accessibleObject | back to summary |
|---|---|
| pack-priv AccessibleObject accessibleObject | |
| accessibleTableCellListeners | back to summary |
|---|---|
| pack-priv List<AccessibleTableCellListener> accessibleTableCellListeners | |
| accessibleTableListeners | back to summary |
|---|---|
| pack-priv List<AccessibleTableListener> accessibleTableListeners | |
| accessibleTextExtendedListeners | back to summary |
|---|---|
| pack-priv List<AccessibleTextExtendedListener> accessibleTextExtendedListeners | |
| accessibleTextListeners | back to summary |
|---|---|
| pack-priv List<AccessibleTextListener> accessibleTextListeners | |
| accessibleValueListeners | back to summary |
|---|---|
| pack-priv List<AccessibleValueListener> accessibleValueListeners | |
| children | back to summary |
|---|---|
| pack-priv List<Accessible> children | |
| control | back to summary |
|---|---|
| pack-priv Control control | |
| parent | back to summary |
|---|---|
| pack-priv Accessible parent | |
| relations | back to summary |
|---|---|
| pack-priv List<Accessible. | |
| Accessible | back to summary |
|---|---|
| public Accessible(Accessible parent) Constructs a new instance of this class given its parent.
| |
| Accessible | back to summary |
|---|---|
| protected Accessible()
Deprecated
| |
| Accessible | back to summary |
|---|---|
| pack-priv Accessible(Control control) | |
| addAccessibleActionListener | back to summary |
|---|---|
| public void addAccessibleActionListener(AccessibleActionListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleAttributeListener | back to summary |
|---|---|
| public void addAccessibleAttributeListener(AccessibleAttributeListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleControlListener | back to summary |
|---|---|
| public void addAccessibleControlListener(AccessibleControlListener listener) Adds the listener to the collection of listeners who will
be notified when an accessible client asks for custom control
specific information. The listener is notified by sending it
one of the messages defined in the
| |
| addAccessibleEditableTextListener | back to summary |
|---|---|
| public void addAccessibleEditableTextListener(AccessibleEditableTextListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleHyperlinkListener | back to summary |
|---|---|
| public void addAccessibleHyperlinkListener(AccessibleHyperlinkListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleListener | back to summary |
|---|---|
| public void addAccessibleListener(AccessibleListener listener) Adds the listener to the collection of listeners who will
be notified when an accessible client asks for certain strings,
such as name, description, help, or keyboard shortcut. The
listener is notified by sending it one of the messages defined
in the
| |
| addAccessibleTableCellListener | back to summary |
|---|---|
| public void addAccessibleTableCellListener(AccessibleTableCellListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleTableListener | back to summary |
|---|---|
| public void addAccessibleTableListener(AccessibleTableListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addAccessibleTextListener | back to summary |
|---|---|
| public void addAccessibleTextListener(AccessibleTextListener listener) Adds the listener to the collection of listeners who will
be notified when an accessible client asks for custom text control
specific information. The listener is notified by sending it
one of the messages defined in the
| |
| addAccessibleValueListener | back to summary |
|---|---|
| public void addAccessibleValueListener(AccessibleValueListener listener) Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| addRelation | back to summary |
|---|---|
| public void addRelation(int type, Accessible target) Adds a relation with the specified type and target to the receiver's set of relations.
| |
| addRelations | back to summary |
|---|---|
| pack-priv void addRelations() | |
| checkNull | back to summary |
|---|---|
| pack-priv static Accessible checkNull(Accessible parent) | |
| checkWidget | back to summary |
|---|---|
| pack-priv void checkWidget() | |
| dispose | back to summary |
|---|---|
| public void dispose() Disposes of the operating system resources associated with the receiver, and removes the receiver from its parent's list of children.
This method should be called when an accessible that was created
with the public constructor
| |
| getAccessibleObject | back to summary |
|---|---|
| pack-priv AccessibleObject getAccessibleObject() | |
| getControl | back to summary |
|---|---|
| public Control getControl() Returns the control for this Accessible object.
| |
| getControlHandle | back to summary |
|---|---|
| pack-priv long getControlHandle() | |
| internal_dispose_Accessible | back to summary |
|---|---|
| public void internal_dispose_Accessible() Invokes platform specific functionality to dispose an accessible object. Important Note This method is not part of the public
API for | |
| internal_new_Accessible | back to summary |
|---|---|
| public static Accessible internal_new_Accessible(Control control) Invokes platform specific functionality to allocate a new accessible object. Important Note This method is not part of the public
API for
| |
| isValidThread | back to summary |
|---|---|
| pack-priv boolean isValidThread() | |
| release | back to summary |
|---|---|
| pack-priv void release() | |
| removeAccessibleActionListener | back to summary |
|---|---|
| public void removeAccessibleActionListener(AccessibleActionListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleAttributeListener | back to summary |
|---|---|
| public void removeAccessibleAttributeListener(AccessibleAttributeListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleControlListener | back to summary |
|---|---|
| public void removeAccessibleControlListener(AccessibleControlListener listener) Removes the listener from the collection of listeners who will be notified when an accessible client asks for custom control specific information.
| |
| removeAccessibleEditableTextListener | back to summary |
|---|---|
| public void removeAccessibleEditableTextListener(AccessibleEditableTextListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleHyperlinkListener | back to summary |
|---|---|
| public void removeAccessibleHyperlinkListener(AccessibleHyperlinkListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleListener | back to summary |
|---|---|
| public void removeAccessibleListener(AccessibleListener listener) Removes the listener from the collection of listeners who will be notified when an accessible client asks for certain strings, such as name, description, help, or keyboard shortcut.
| |
| removeAccessibleTableCellListener | back to summary |
|---|---|
| public void removeAccessibleTableCellListener(AccessibleTableCellListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleTableListener | back to summary |
|---|---|
| public void removeAccessibleTableListener(AccessibleTableListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeAccessibleTextListener | back to summary |
|---|---|
| public void removeAccessibleTextListener(AccessibleTextListener listener) Removes the listener from the collection of listeners who will be notified when an accessible client asks for custom text control specific information.
| |
| removeAccessibleValueListener | back to summary |
|---|---|
| public void removeAccessibleValueListener(AccessibleValueListener listener) Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
| |
| removeRelation | back to summary |
|---|---|
| public void removeRelation(int type, Accessible target) Removes the relation with the specified type and target from the receiver's set of relations.
| |
| selectionChanged | back to summary |
|---|---|
| public void selectionChanged() Sends a message to accessible clients that the child selection within a custom container control has changed.
| |
| sendEvent | back to summary |
|---|---|
| public void sendEvent(int event, Object eventData, int childID) Sends a message with event-specific data and a childID to accessible clients, indicating that something has changed within a custom control. Note This API is intended for applications that are still using childIDs. Moving forward, applications should use accessible objects instead of childIDs.
| |
| setFocus | back to summary |
|---|---|
| public void setFocus(int childID) Sends a message to accessible clients indicating that the focus has changed within a custom control.
| |
| textCaretMoved | back to summary |
|---|---|
| public void textCaretMoved(int index) Sends a message to accessible clients that the text caret has moved within a custom control.
| |
| textChanged | back to summary |
|---|---|
| public void textChanged(int type, int startIndex, int length) Sends a message to accessible clients that the text within a custom control has changed.
| |
| textSelectionChanged | back to summary |
|---|---|
| public void textSelectionChanged() Sends a message to accessible clients that the text selection has changed within a custom control.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Accessible | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| target | back to summary |
|---|---|
| pack-priv Accessible target | |
| type | back to summary |
|---|---|
| pack-priv int type | |
| Relation | back to summary |
|---|---|
| public Relation(int type, Accessible target) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |