Enum Class AccessibleRole
- 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.- Since:
- JavaFX 8u40
- See Also:
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
| Enum Constant | Description |
|---|---|
BUTTON |
Button role. |
CHECK_BOX |
Check Box role. |
CHECK_BOX_TREE_ITEM |
Check Box Tree Item 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. |
DIALOG |
Dialog 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 |
Returns the enum constant of this class with the specified name. |
static AccessibleRole[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
Enum Constant Details
BUTTON
public static final AccessibleRole BUTTON
CHECK_BOX
public static final AccessibleRole CHECK_BOX
Attributes:
Actions:CHECK_MENU_ITEM
public static final AccessibleRole CHECK_MENU_ITEM
Attributes:
Actions:COMBO_BOX
public static final AccessibleRole COMBO_BOX
Attributes:
Actions:CONTEXT_MENU
public static final AccessibleRole CONTEXT_MENU
Attributes:
DATE_PICKER
public static final AccessibleRole DATE_PICKER
Attributes:
DECREMENT_BUTTON
public static final AccessibleRole DECREMENT_BUTTON
HYPERLINK
public static final AccessibleRole HYPERLINK
INCREMENT_BUTTON
public static final AccessibleRole INCREMENT_BUTTON
IMAGE_VIEW
public static final AccessibleRole IMAGE_VIEW
Attributes: Actions:
It is strongly recommended that a text description of the image be provided for each ImageView. This can be done by setting either Node.accessibleTextProperty() for the ImageView or by using AccessibleAttribute.LABELED_BY.
LIST_VIEW
public static final AccessibleRole LIST_VIEW
LIST_ITEM
public static final AccessibleRole LIST_ITEM
Attributes:
Actions:MENU
public static final AccessibleRole MENU
MENU_BAR
public static final AccessibleRole MENU_BAR
Attributes:
Actions:
MENU_BUTTON
public static final AccessibleRole MENU_BUTTON
MENU_ITEM
public static final AccessibleRole MENU_ITEM
Attributes:
Actions:NODE
public static final AccessibleRole NODE
Attributes:
-
AccessibleAttribute.ROLE -
AccessibleAttribute.PARENT -
AccessibleAttribute.SCENE -
AccessibleAttribute.BOUNDS -
AccessibleAttribute.DISABLED -
AccessibleAttribute.FOCUSED -
AccessibleAttribute.VISIBLE
PAGE_ITEM
public static final AccessibleRole PAGE_ITEM
Attributes:
Actions:PAGINATION
public static final AccessibleRole PAGINATION
Attributes:
Actions:PARENT
public static final AccessibleRole PARENT
Attributes:
Actions:PASSWORD_FIELD
public static final AccessibleRole PASSWORD_FIELD
Attributes:
-
AccessibleAttribute.TEXT- must return null or empty string
PROGRESS_INDICATOR
public static final AccessibleRole PROGRESS_INDICATOR
Attributes:
Actions:RADIO_BUTTON
public static final AccessibleRole RADIO_BUTTON
Attributes:
Actions:RADIO_MENU_ITEM
public static final AccessibleRole RADIO_MENU_ITEM
Attributes:
Actions:SLIDER
public static final AccessibleRole SLIDER
SPINNER
public static final AccessibleRole SPINNER
Attributes:
Actions:TEXT
public static final AccessibleRole TEXT
Attributes:
Actions:TEXT_AREA
public static final AccessibleRole TEXT_AREA
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
public static final AccessibleRole TEXT_FIELD
TOGGLE_BUTTON
public static final AccessibleRole TOGGLE_BUTTON
Attributes:
Actions:TOOLTIP
public static final AccessibleRole TOOLTIP
Attributes: Actions:
SCROLL_BAR
public static final AccessibleRole SCROLL_BAR
Attributes:
Actions:SCROLL_PANE
public static final AccessibleRole SCROLL_PANE
Attributes:
Actions:SPLIT_MENU_BUTTON
public static final AccessibleRole SPLIT_MENU_BUTTON
Attributes:
Actions:TAB_ITEM
public static final AccessibleRole TAB_ITEM
Attributes:
Actions:TAB_PANE
public static final AccessibleRole TAB_PANE
Attributes:
Actions:TABLE_CELL
public static final AccessibleRole TABLE_CELL
Attributes:
Actions:TABLE_COLUMN
public static final AccessibleRole TABLE_COLUMN
Attributes:
Actions:TABLE_ROW
public static final AccessibleRole TABLE_ROW
Attributes:
Actions:TABLE_VIEW
public static final AccessibleRole TABLE_VIEW
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
public static final AccessibleRole THUMB
Attributes:
Actions:TITLED_PANE
public static final AccessibleRole TITLED_PANE
Attributes:
Actions:TOOL_BAR
public static final AccessibleRole TOOL_BAR
Attributes:
Actions:TREE_ITEM
public static final AccessibleRole TREE_ITEM
Attributes:
Actions:CHECK_BOX_TREE_ITEM
public static final AccessibleRole CHECK_BOX_TREE_ITEM
Attributes:
-
AccessibleAttribute.TEXT -
AccessibleAttribute.INDEX -
AccessibleAttribute.SELECTED -
AccessibleAttribute.EXPANDED -
AccessibleAttribute.LEAF -
AccessibleAttribute.DISCLOSURE_LEVEL -
AccessibleAttribute.TREE_ITEM_COUNT -
AccessibleAttribute.TREE_ITEM_AT_INDEX -
AccessibleAttribute.TREE_ITEM_PARENT -
AccessibleAttribute.TOGGLE_STATE
- Since:
- 21
TREE_TABLE_CELL
public static final AccessibleRole TREE_TABLE_CELL
Attributes:
Actions:TREE_TABLE_ROW
public static final AccessibleRole TREE_TABLE_ROW
TREE_TABLE_VIEW
public static final AccessibleRole TREE_TABLE_VIEW
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
public static final AccessibleRole TREE_VIEW
DIALOG
public static final AccessibleRole DIALOG
Attributes:
- Since:
- 20
Method Details
values
public static AccessibleRole[] values()
- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
public static AccessibleRole valueOf(String name)
- 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 name -
NullPointerException- if the argument is null
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.