Accessibility/Comparisons:Roles: Difference between revisions

Jump to navigation Jump to search
updated per dev-a11y & IRC discussion
No edit summary
(updated per dev-a11y & IRC discussion)
Line 33: Line 33:
</tr>
</tr>
<tr>
<tr>
<td class="maybe">
<td>
ALERT
ALERT
</td>
</td>
<td class="maybe">
<td>
ALERT
ALERT
</td>
</td>
<td class="maybe">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_3.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_9 Window] with SystemDialog subrole?
</td>
</td>
<td class="maybe">
<td>
An error, warning, or informational message
An error, warning, or informational message
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
APPLICATION
APPLICATION
</td>
</td>
<td class="OK">
<td>
APPLICATION
APPLICATION
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_2.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_8 Application]
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_2.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_8 Application]
</td>
</td>
<td class="OK">
<td>
Toplevel accessible object of an application, which may contain frame objects or other accessible objects.
Toplevel accessible object of an application, which may contain frame objects or other accessible objects.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
BUTTONMENU
BUTTONMENU
</td>
</td>
<td class="OK">
<td>
add custom role
add custom role
</td>
</td>
<td class="OK">
<td>
MenuButton
MenuButton
</td>
</td>
<td class="OK">
<td>
Button that drops down a menu
Button that drops down a menu
</td>
</td>
Line 88: Line 87:
</tr>
</tr>
<tr>
<tr>
<td class="maybe">
<td>
CHART
CHART
</td>
</td>
<td class="maybe">
<td>
CHART (proposed)
CHART (proposed)
</td>
</td>
<td class="maybe">
<td>
Image with a special DescriptionAttribute?
</td>
</td>
<td class="maybe">
<td>
Graphical depiction of quantitative data
Graphical depiction of quantitative data
</td>
</td>
Line 129: Line 127:
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK" normal="">
<td>
COLUMNHEADER
COLUMNHEADER
</td>
</td>
<td class="OK">
<td>
TABLE_COLUMN_HEADER, COLUMN_HEADER
TABLE_COLUMN_HEADER, COLUMN_HEADER
</td>
</td>
<td class="OK">
<td>
Get the NSAccessibilityHeaderAttribute on a&nbsp;[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_14.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_19 Table]
Get the NSAccessibilityHeaderAttribute on a&nbsp;[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_14.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_19 Table]
</td>
</td>
<td class="OK">
<td>
Header which labels a column of data, or more specifically a column of data in a table.
Header which labels a column of data, or more specifically a column of data in a table.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
COMBOBOX
COMBOBOX
</td>
</td>
<td class="OK">
<td>
COMBO_BOX
COMBO_BOX
</td>
</td>
<td class="OK">
<td>
ComboBox
ComboBox
</td>
</td>
<td class="OK">
<td>
Edit control with a drop-down list of selections
Edit control with a drop-down list of selections
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td class="maybe">
<td>
DIAGRAM
DIAGRAM
</td>
</td>
<td class="maybe">
<td>
IMAGE, DRAWING_AREA, or add custom role
IMAGE, DRAWING_AREA, or add custom role
</td>
</td>
<td class="maybe">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_7.html#//apple_ref/doc/uid/TPhttp://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_7.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_1340001078-CH211-DontLinkElementID_13 Image]
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_7.html#//apple_ref/doc/uid/TPhttp://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_7.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_1340001078-CH211-DontLinkElementID_13 Image]?
</td>
</td>
<td class="maybe">
<td>
Image is a generic graphic. Diagram is a specific type of a drawn graphic. Drawing area is used for creating custom user interface elements.
Image is a generic graphic. Diagram is a specific type of a drawn graphic. Drawing area is used for creating custom user interface elements.
</td>
</td>
Line 199: Line 197:
</td>
</td>
</tr>
</tr>
<tr class="maybe">
<tr class="OK">
<td>
<td>
DROPLIST
DROPLIST
Line 213: Line 211:
</td>
</td>
</tr>
</tr>
<tr class="maybe">
<tr>
<td>
<td>
EQUATION
EQUATION
Line 221: Line 219:
</td>
</td>
<td>
<td>
Image/StaticText + special DescriptionAttribute probably sufficient.
</td>
</td>
<td>
<td>
Line 342: Line 339:
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
MENUITEM
MENUITEM
</td>
</td>
<td class="OK">
<td>
MENU_ITEM, RADIO_MENU_ITEM, CHECK_MENU_ITEM
MENU_ITEM, RADIO_MENU_ITEM, CHECK_MENU_ITEM
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_37.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_40 MenuItem], [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_35.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_38 MenuBarItem]
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_37.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_40 MenuItem], [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_35.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_38 MenuBarItem]
</td>
</td>
<td class="OK">
<td>
Element in a menu that presents a selectable action. A radio menu item is both a radio button and a menu item. A check menu item is both a check box and a menu item.
Element in a menu that presents a selectable action. A radio menu item is both a radio button and a menu item. A check menu item is both a check box and a menu item.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
MENUPOPUP
MENUPOPUP
</td>
</td>
<td class="OK">
<td>
MENU, POPUP_MENU, TEAROFF_MENU_ITEM
MENU, POPUP_MENU, TEAROFF_MENU_ITEM
</td>
</td>
<td class="OK">
<td>
Menu, [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_12.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_17 MenuButton] (button with icon that pops up a menu when clicked) or [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_11.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_16 PopupButton] (regular popupmenu showing the current choice)
Menu, [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_12.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_17 MenuButton] (button with icon that pops up a menu when clicked) or [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_11.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_16 PopupButton] (regular popupmenu showing the current choice)
</td>
</td>
<td class="OK">
<td>
A menu is a list of actions from which the user can choose. A pop-up menu is a temporary window that offers the user a list of choices, then hides itself once the user selects one of those choices. A tearoff menu item is a is a menu that can be removed from the menubar and shown in its own window.
A menu is a list of actions from which the user can choose. A pop-up menu is a temporary window that offers the user a list of choices, then hides itself once the user selects one of those choices. A tearoff menu item is a is a menu that can be removed from the menubar and shown in its own window.
</td>
</td>
Line 398: Line 395:
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
PAGETAB
PAGETAB
</td>
</td>
<td class="OK">
<td>
PAGE_TAB
PAGE_TAB
</td>
</td>
<td class="OK">
<td>Use TabGroup and friends. We'll try to do this similarly to how XUL structures tabboxes, but since that will be different from how [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_13.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_18 TabGroup]s normally are represented in UA, we'll need to make sure VoiceOver and everything still works.
Just a [http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Protocols/NSAccessibility.html#//apple_ref/doc/c_ref/NSAccessibilityMarkerTypeAttribute Group] child inside a&nbsp;[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_13.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_18 TabGroup]
</td>
</td>
<td class="OK">
<td>
A tab that usually contains a label or title for a page or panel of a notebook container.
A tab that usually contains a label or title for a page or panel of a notebook container.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
PAGETABLIST
PAGETABLIST
</td>
</td>
<td class="OK">
<td>
PAGE_TAB_LIST
PAGE_TAB_LIST
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_13.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_18 TabGroup]
See TabGroup above.
</td>
</td>
<td class="OK">
<td>
A tabbed notebook container, or a series of panels presented as tabbed pages.
A tabbed notebook container, or a series of panels presented as tabbed pages.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
PANE
PANE
</td>
</td>
<td class="OK">
<td>
FRAME, INTERNAL_FRAME, GLASS_PANE, LAYERED_PANE, OPTION_PANE, SCROLL_PANE, DIRECTORY_PANE, DESKTOP_FRAME, ROOT_PANE, SPLIT_PANE, VIEWPORT
FRAME, INTERNAL_FRAME, GLASS_PANE, LAYERED_PANE, OPTION_PANE, SCROLL_PANE, DIRECTORY_PANE, DESKTOP_FRAME, ROOT_PANE, SPLIT_PANE, VIEWPORT
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_3.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_9 Window]&nbsp;(subroles StandardWindow), ScrollArea, SplitGroup (two adjacent "views" with a splitter bar), Browser (horizontal tree-like view often used for nagivating in the filesystem)
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_3.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_9 Window]&nbsp;(subroles StandardWindow), ScrollArea, SplitGroup (two adjacent "views" with a splitter bar), Browser (horizontal tree-like view often used for nagivating in the filesystem)
</td>
</td>
<td class="OK">
<td>
A pane or frame in the current window. A frame is a top level window with a title bar, border, menubar, etc. An internal frame is a frame clipped by a desktop pane. A glass pane is painted on top of all panes beneath it. A layered pane allows its children to be drawn in layers based on a stacking order. An option pane is a pane inside of a dialog. A scroll pane contains scroll bars. A directory pane contains selections (icons, lists, trees) for the content of a directory. A desktop frame is a pane that supports internal frames and icons for those internal frames. A root pane has a glass pane and a layered pane as its children. A split pane is a panel that presents two other panels at the same time. A viewport is a container of content, usually used in a scroll pane, that represents a clipped version of that pane that is onscreen (visible).
A pane or frame in the current window. A frame is a top level window with a title bar, border, menubar, etc. An internal frame is a frame clipped by a desktop pane. A glass pane is painted on top of all panes beneath it. A layered pane allows its children to be drawn in layers based on a stacking order. An option pane is a pane inside of a dialog. A scroll pane contains scroll bars. A directory pane contains selections (icons, lists, trees) for the content of a directory. A desktop frame is a pane that supports internal frames and icons for those internal frames. A root pane has a glass pane and a layered pane as its children. A split pane is a panel that presents two other panels at the same time. A viewport is a container of content, usually used in a scroll pane, that represents a clipped version of that pane that is onscreen (visible).
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
PROGRESSBAR
PROGRESSBAR
</td>
</td>
<td class="OK">
<td>
PROGRESS_BAR
PROGRESS_BAR
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_27.html#//apple_ref/doc/uid/TP40001078-CH211-CACIAHEA ProgressIndicator]
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_27.html#//apple_ref/doc/uid/TP40001078-CH211-CACIAHEA ProgressIndicator]
</td>
</td>
<td class="OK">
<td>
Object that shows the percentage of a task that has completed.
Object that shows the percentage of a task that has completed.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="maybe">
<td>
PROPERTYPAGE
PROPERTYPAGE
</td>
</td>
<td class="maybe">
<td>
PAGE (proposed) or add custom role
PAGE (proposed) or add custom role
</td>
</td>
<td class="maybe">
<td>
Group with DescriptionAttribute describing special purpose?
Group with DescriptionAttribute describing special purpose?
</td>
</td>
<td class="maybe">
<td>
Page showing properties of something.
Page showing properties of something.
</td>
</td>
Line 496: Line 492:
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
ROW
ROW
</td>
</td>
<td class="OK">
<td>
add custom control
add custom control
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_17.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_22 Row] (see subroles OutlineRow, TableRow)
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_17.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_22 Row] (see subroles OutlineRow, TableRow)
</td>
</td>
<td class="OK">
<td>
Row in a table.
Row in a table.
</td>
</td>
Line 538: Line 534:
</td>
</td>
</tr>
</tr>
<tr class="maybe">
<tr>
<td>
<td>
SEPARATOR
SEPARATOR
Line 546: Line 542:
</td>
</td>
<td>
<td>
A Splitter that is disabled/static?
</td>
</td>
<td>
<td>
Line 566: Line 561:
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
SPINBUTTON
SPINBUTTON
</td>
</td>
<td class="OK">
<td>
SPIN_BUTTON
SPIN_BUTTON
</td>
</td>
<td class="OK">
<td>
Incrementor ("Stepper"), (Increment/Decrement subroles).
Incrementor ("Stepper"), (Increment/Decrement subroles).
</td>
</td>
<td class="OK">
<td>
Object that allows the user to select a value from a set of choices.
Object that allows the user to select a value from a set of choices.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td class="OK">
<td>
STATICTEXT
STATICTEXT
</td>
</td>
<td class="OK">
<td>
LABEL, ACCELERATOR_LABEL
LABEL, ACCELERATOR_LABEL
</td>
</td>
<td class="OK">
<td>
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_33.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_36 StaticText]
[http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_33.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_36 StaticText]
</td>
</td>
<td class="OK">
<td>
A label presents text that provides a short name or description associated with another object, like a text entry field. An accelerator label indicates the keyboard accelerators for its parent, like a menu item.
A label presents text that provides a short name or description associated with another object, like a text entry field. An accelerator label indicates the keyboard accelerators for its parent, like a menu item.
</td>
</td>
</tr>
</tr>
<tr>
<tr class="OK">
<td>
<td>
STATUSBAR
STATUSBAR
Line 602: Line 597:
</td>
</td>
<td>
<td>
We could use [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_26.html#//apple_ref/doc/uid/TP40001078-CH211-CACGDCAF BusyIndicator] here&nbsp;for indeterminate progress and [http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_27.html#//apple_ref/doc/uid/TP40001078-CH211-CACIAHEA ProgressIndicator] for determinate progress
Represented as its individual parts; the status text is text, the progressbar is a ProgressBar, etc.
</td>
</td>
<td>
<td>
Line 705: Line 700:
</td>
</td>
</tr>
</tr>
<tr class="maybe">
<tr>
<td>
<td>
</td>
</td>
Line 712: Line 707:
</td>
</td>
<td>
<td>
Unknown + smart RoleDescription/DescriptionAttribute?
</td>
</td>
<td>
<td>
Line 718: Line 712:
</td>
</td>
</tr>
</tr>
<tr class="maybe">
<tr class="OK">
<td>
<td>
</td>
</td>
107

edits

Navigation menu