Package limn.accessibility
Enum Class Accessible.Role
- All Implemented Interfaces:
Serializable,Comparable<Accessible.Role>,Constable
- Enclosing class:
Accessible
What a node is. Not a string and not a per-platform constant: each bridge maps this to its
own platform's control type, so every degradation is visible in one file per platform.
Three constants exist only because a platform would otherwise be told something untrue.
SWITCH is not CHECK_BOX, because the three platforms have three different
answers for it and a single constant would collapse them. HEADING exists because a
label carrying a title's typographic role is a heading and every platform has one.
RADIO_MENU_ITEM exists because a single-selection menu group built out of check
items reports independent checkboxes, which is a lie this constant retires.
A 1.x minor release may add constants to this enum: a switch over it needs a
default branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA message that demands attention rather than a dialog that awaits input.A push button.A surface a widget draws itself, whose content the tree cannot describe.One cell of aROW.A chart.One data series of aCHART.A checkbox.A row of a menu that carries an independent checked state.A colour picker.The header cell of one column of aTABLE.A control that chooses one option from a list it can open.A dialog, in its own window or as an in-scene overlay.A grouping box with no behaviour of its own; the role a described container takes.Static text that titles the section under it.A picture.Static text.A list.One row of aLIST.An open menu: one column of a cascade.The bar of menu titles along the top of a window.A row of a menu that runs a command.A text field whose content is masked.A progress indicator.One option of a single-selection group.The group aRADIO_BUTTONbelongs to.A row of a menu that is one option of a single-selection group.One data row of aTABLE.A scroll bar.A scrolling viewport.A text field that runs a search.A rule between groups of items.A slider.A number field with increment and decrement.A pane split by a draggable divider.The draggable divider of aSPLIT_PANE.A switch: a checkbox whose platform presentation is an on/off control.One tab of aTAB_LIST.The strip of tabs above a tabbed pane.The content aTABselects.A grid of rows and columns over data.A multi-line text field.A single-line text field.A button that stays pressed.A bar of commands.An outline of rows at a depth, where a row can open onto its children.One row of aTREE.Nothing better applies.A video surface.A top-level window. -
Method Summary
Modifier and TypeMethodDescriptionstatic Accessible.RoleReturns the enum constant of this class with the specified name.static Accessible.Role[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINDOW
A top-level window. -
DIALOG
A dialog, in its own window or as an in-scene overlay. -
ALERT
A message that demands attention rather than a dialog that awaits input. -
GROUP
A grouping box with no behaviour of its own; the role a described container takes. -
SCROLL_PANE
A scrolling viewport. -
SCROLL_BAR
A scroll bar. -
SPLIT_PANE
A pane split by a draggable divider. -
SPLITTER
The draggable divider of aSPLIT_PANE. Its box is the band a pointer grabs, which may reach over the edges of the siblings it divides, and a point in that band is the splitter's whatever order the siblings are published in: that is where the pointer drags it. -
TOOL_BAR
A bar of commands. -
MENU_BAR
The bar of menu titles along the top of a window. -
MENU
An open menu: one column of a cascade. -
MENU_ITEM
A row of a menu that runs a command. -
CHECK_MENU_ITEM
A row of a menu that carries an independent checked state. -
RADIO_MENU_ITEM
A row of a menu that is one option of a single-selection group. -
SEPARATOR
A rule between groups of items. -
BUTTON
A push button. -
TOGGLE_BUTTON
A button that stays pressed. -
CHECK_BOX
A checkbox. -
SWITCH
A switch: a checkbox whose platform presentation is an on/off control. -
RADIO_BUTTON
One option of a single-selection group. -
RADIO_GROUP
The group aRADIO_BUTTONbelongs to. -
LABEL
Static text. -
HEADING
Static text that titles the section under it. -
IMAGE
A picture. -
VIDEO
A video surface. -
CANVAS
A surface a widget draws itself, whose content the tree cannot describe. -
CHART
A chart. -
CHART_SERIES
One data series of aCHART. -
PROGRESS_BAR
A progress indicator. -
SLIDER
A slider. -
SPIN_BUTTON
A number field with increment and decrement. -
TEXT_FIELD
A single-line text field. -
TEXT_AREA
A multi-line text field. -
PASSWORD_FIELD
A text field whose content is masked. -
SEARCH_FIELD
A text field that runs a search. -
COMBO_BOX
A control that chooses one option from a list it can open. -
LIST
A list. -
LIST_ITEM
One row of aLIST. -
TAB_LIST
The strip of tabs above a tabbed pane. -
TAB
One tab of aTAB_LIST. -
TAB_PANEL
The content aTABselects. -
COLOR_CHOOSER
A colour picker. -
TABLE
A grid of rows and columns over data. -
COLUMN_HEADER
The header cell of one column of aTABLE. -
ROW
One data row of aTABLE. -
CELL
One cell of aROW. -
TREE
An outline of rows at a depth, where a row can open onto its children. -
TREE_ITEM
One row of aTREE. -
UNKNOWN
Nothing better applies. A focusable node that publishes this is a defect: the toolkit logs a warning naming the class, once per class.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-