Accessibility API concepts

Before you use the Accessibility API, you should understand the following concepts.

Concept

Description

role

Each accessible UI object has a role. A role specifies the type of UI component. Roles include text fields, labels, screens, dialog boxes, lists, icons, radio buttons, tables, check boxes, and buttons.

The AccessibleRole interface in the Accessibility API defines roles as constants.

state

Each accessible UI object has a state. A state specifies the current object state as a mask of flags. States include focusable, focused, checked, active, selected, and editable. Objects can have multiple states at a time, such as focusable and focused.

The AccessibleState interface defines states as constants.

container

Some accessible UI objects are containers. Containers are visual elements, such as screens, dialog boxes, lists, and menus, that contain children.

You can discover the children of a container with methods in the AccessibleContext interface.

table

A table is a type of container that displays children in a tabular format.

Examples of tables include the monthly view and weekly view in the calendar, and a table on a web page.

You can discover the table properties for an accessible UI object by using the methods in the AccessibleTable interface.


Was this information helpful? Send us your comments.