- All Implemented Interfaces:
Serializable
,Comparable<AccessibleRole>
,Constable
public enum AccessibleRole extends Enum<AccessibleRole>
Node
.
The role is used by assistive technologies such as screen readers
to decide the set of actions and attributes for a node. For example,
when the screen reader needs the current value of a slider, it
will request it using the value attribute. When the screen reader
changes the value of the slider, it will use an action to set
the current value of the slider. The slider must respond
appropriately to both these requests.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description BUTTON
Button role.CHECK_BOX
Check Box role.CHECK_MENU_ITEM
Check Menu Item role.COMBO_BOX
Combo Box role.CONTEXT_MENU
Context Menu role.DATE_PICKER
Date Picker role.DECREMENT_BUTTON
Decrement Button role.HYPERLINK
Hyperlink role.IMAGE_VIEW
Image View role.INCREMENT_BUTTON
Increment Button role.LIST_ITEM
List Item role.LIST_VIEW
List View role.MENU
Menu role.MENU_BAR
Menu Bar role.MENU_BUTTON
Menu Button role.MENU_ITEM
Menu Item role.NODE
Node role.PAGE_ITEM
Page role.PAGINATION
Pagination role.PARENT
Parent role.PASSWORD_FIELD
Password Field role.PROGRESS_INDICATOR
Progress Indicator role.RADIO_BUTTON
Radio Button role.RADIO_MENU_ITEM
Radio Menu Item role.SCROLL_BAR
Scroll Bar role.SCROLL_PANE
Scroll Pane role.SLIDER
Slider role.SPINNER
Spinner role.SPLIT_MENU_BUTTON
Split Menu Button role.TAB_ITEM
Tab Item role.TAB_PANE
Tab Pane role.TABLE_CELL
Table Cell role.TABLE_COLUMN
Table Column role.TABLE_ROW
Table Row role.TABLE_VIEW
Table View role.TEXT
Text role.TEXT_AREA
Text Area role.TEXT_FIELD
Text Field role.THUMB
Thumb role.TITLED_PANE
Titled Pane role.TOGGLE_BUTTON
Toggle Button role.TOOL_BAR
Tool Bar role.TOOLTIP
Tooltip role.TREE_ITEM
Tree Item role.TREE_TABLE_CELL
Tree Table Cell role.TREE_TABLE_ROW
Tree Table Row role.TREE_TABLE_VIEW
Tree Table View role.TREE_VIEW
Tree View role. -
Method Summary
Modifier and Type Method Description static AccessibleRole
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessibleRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BUTTON
-
CHECK_BOX
Check Box role.Attributes:
Actions: -
CHECK_MENU_ITEM
Check Menu Item role.Attributes:
Actions: -
COMBO_BOX
Combo Box role.Attributes:
Actions: -
CONTEXT_MENU
Context Menu role.Attributes:
-
DATE_PICKER
Date Picker role.Attributes:
-
DECREMENT_BUTTON
-
HYPERLINK
Hyperlink role. Actions: -
INCREMENT_BUTTON
-
IMAGE_VIEW
Image View role.Attributes: Actions:
It is strongly recommended that a text description of the image be provided for each
ImageView
. This can be done by setting eitherNode.accessibleTextProperty()
for theImageView
or by usingAccessibleAttribute.LABELED_BY
. -
LIST_VIEW
-
LIST_ITEM
List Item role.Attributes:
Actions: -
MENU
-
MENU_BAR
Menu Bar role.Attributes:
Actions:
-
MENU_BUTTON
-
MENU_ITEM
Menu Item role.Attributes:
Actions: -
NODE
Node role.Attributes:
-
AccessibleAttribute.ROLE
-
AccessibleAttribute.PARENT
-
AccessibleAttribute.SCENE
-
AccessibleAttribute.BOUNDS
-
AccessibleAttribute.DISABLED
-
AccessibleAttribute.FOCUSED
-
AccessibleAttribute.VISIBLE
-
-
PAGE_ITEM
Page role.Attributes:
Actions: -
PAGINATION
Pagination role.Attributes:
Actions: -
PARENT
Parent role.Attributes:
Actions: -
PASSWORD_FIELD
Password Field role.Attributes:
-
AccessibleAttribute.TEXT
- must return null or empty string
-
-
PROGRESS_INDICATOR
Progress Indicator role.Attributes:
Actions: -
RADIO_BUTTON
Radio Button role.Attributes:
Actions: -
RADIO_MENU_ITEM
Radio Menu Item role.Attributes:
Actions: -
SLIDER
-
SPINNER
Spinner role.Attributes:
Actions: -
TEXT
Text role.Attributes:
Actions: -
TEXT_AREA
Text Area role.Attributes:
-
AccessibleAttribute.TEXT
-
AccessibleAttribute.FONT
-
AccessibleAttribute.EDITABLE
-
AccessibleAttribute.SELECTION_START
-
AccessibleAttribute.SELECTION_END
-
AccessibleAttribute.CARET_OFFSET
-
AccessibleAttribute.OFFSET_AT_POINT
-
AccessibleAttribute.LINE_START
-
AccessibleAttribute.LINE_END
-
AccessibleAttribute.LINE_FOR_OFFSET
-
AccessibleAttribute.BOUNDS_FOR_RANGE
-
-
TEXT_FIELD
-
TOGGLE_BUTTON
Toggle Button role.Attributes:
Actions: -
TOOLTIP
Tooltip role.Attributes: Actions:
-
SCROLL_BAR
Scroll Bar role.Attributes:
Actions: -
SCROLL_PANE
Scroll Pane role.Attributes:
Actions: -
SPLIT_MENU_BUTTON
Split Menu Button role.Attributes:
Actions: -
TAB_ITEM
Tab Item role.Attributes:
Actions: -
TAB_PANE
Tab Pane role.Attributes:
Actions: -
TABLE_CELL
Table Cell role.Attributes:
Actions: -
TABLE_COLUMN
Table Column role.Attributes:
Actions: -
TABLE_ROW
Table Row role.Attributes:
Actions: -
TABLE_VIEW
Table View role.Attributes:
-
AccessibleAttribute.ROW_COUNT
-
AccessibleAttribute.ROW_AT_INDEX
-
AccessibleAttribute.COLUMN_COUNT
-
AccessibleAttribute.COLUMN_AT_INDEX
-
AccessibleAttribute.SELECTED_ITEMS
-
AccessibleAttribute.CELL_AT_ROW_COLUMN
-
AccessibleAttribute.HEADER
-
AccessibleAttribute.MULTIPLE_SELECTION
-
AccessibleAttribute.VERTICAL_SCROLLBAR
-
AccessibleAttribute.HORIZONTAL_SCROLLBAR
-
AccessibleAttribute.FOCUS_ITEM
-
-
THUMB
Thumb role.Attributes:
Actions: -
TITLED_PANE
Titled Pane role.Attributes:
Actions: -
TOOL_BAR
Tool Bar role.Attributes:
Actions: -
TREE_ITEM
Tree Item role.Attributes:
Actions: -
TREE_TABLE_CELL
Tree Table Cell role.Attributes:
Actions: -
TREE_TABLE_ROW
-
TREE_TABLE_VIEW
Tree Table View role.Attributes:
-
AccessibleAttribute.ROW_COUNT
-
AccessibleAttribute.ROW_AT_INDEX
-
AccessibleAttribute.COLUMN_COUNT
-
AccessibleAttribute.COLUMN_AT_INDEX
-
AccessibleAttribute.SELECTED_ITEMS
-
AccessibleAttribute.CELL_AT_ROW_COLUMN
-
AccessibleAttribute.HEADER
-
AccessibleAttribute.MULTIPLE_SELECTION
-
AccessibleAttribute.VERTICAL_SCROLLBAR
-
AccessibleAttribute.HORIZONTAL_SCROLLBAR
-
AccessibleAttribute.FOCUS_ITEM
-
-
TREE_VIEW
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-