- java.lang.Object
-
- java.lang.Enum<AccessibleRole>
-
- javafx.scene.AccessibleRole
-
- All Implemented Interfaces:
Serializable,Comparable<AccessibleRole>
public enum AccessibleRole extends Enum<AccessibleRole>
This enum describes the accessible role for aNode. 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUTTONButton role.CHECK_BOXCheck Box role.CHECK_MENU_ITEMCheck Menu Item role.COMBO_BOXCombo Box role.CONTEXT_MENUContext Menu role.DATE_PICKERDate Picker role.DECREMENT_BUTTONDecrement Button role.HYPERLINKHyperlink role.IMAGE_VIEWImage View role.INCREMENT_BUTTONIncrement Button role.LIST_ITEMList Item role.LIST_VIEWList View role.MENUMenu role.MENU_BARMenu Bar role.MENU_BUTTONMenu Button role.MENU_ITEMMenu Item role.NODENode role.PAGE_ITEMPage role.PAGINATIONPagination role.PARENTParent role.PASSWORD_FIELDPassword Field role.PROGRESS_INDICATORProgress Indicator role.RADIO_BUTTONRadio Button role.RADIO_MENU_ITEMRadio Menu Item role.SCROLL_BARScroll Bar role.SCROLL_PANEScroll Pane role.SLIDERSlider role.SPINNERSpinner role.SPLIT_MENU_BUTTONSplit Menu Button role.TAB_ITEMTab Item role.TAB_PANETab Pane role.TABLE_CELLTable Cell role.TABLE_COLUMNTable Column role.TABLE_ROWTable Row role.TABLE_VIEWTable View role.TEXTText role.TEXT_AREAText Area role.TEXT_FIELDText Field role.THUMBThumb role.TITLED_PANETitled Pane role.TOGGLE_BUTTONToggle Button role.TOOL_BARTool Bar role.TOOLTIPTooltip role.TREE_ITEMTree Item role.TREE_TABLE_CELLTree Table Cell role.TREE_TABLE_ROWTree Table Row role.TREE_TABLE_VIEWTree Table View role.TREE_VIEWTree View role.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessibleRolevalueOf(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 Detail
-
BUTTON
public static final AccessibleRole BUTTON
-
CHECK_BOX
public static final AccessibleRole CHECK_BOX
Check Box role.Attributes:
Actions:
-
CHECK_MENU_ITEM
public static final AccessibleRole CHECK_MENU_ITEM
Check Menu Item role.Attributes:
Actions:
-
COMBO_BOX
public static final AccessibleRole COMBO_BOX
Combo Box role.Attributes:
Actions:
-
CONTEXT_MENU
public static final AccessibleRole CONTEXT_MENU
Context Menu role.Attributes:
-
DATE_PICKER
public static final AccessibleRole DATE_PICKER
Date Picker role.Attributes:
-
DECREMENT_BUTTON
public static final AccessibleRole DECREMENT_BUTTON
-
HYPERLINK
public static final AccessibleRole HYPERLINK
Hyperlink role. Actions:
-
INCREMENT_BUTTON
public static final AccessibleRole INCREMENT_BUTTON
-
IMAGE_VIEW
public static final AccessibleRole 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 theImageViewor by usingAccessibleAttribute.LABELED_BY.
-
LIST_VIEW
public static final AccessibleRole LIST_VIEW
-
LIST_ITEM
public static final AccessibleRole LIST_ITEM
List Item role.Attributes:
Actions:
-
MENU
public static final AccessibleRole MENU
-
MENU_BAR
public static final AccessibleRole MENU_BAR
Menu Bar role.Attributes:
Actions:
-
MENU_BUTTON
public static final AccessibleRole MENU_BUTTON
-
MENU_ITEM
public static final AccessibleRole MENU_ITEM
Menu Item role.Attributes:
Actions:
-
NODE
public static final AccessibleRole NODE
Node role.Attributes:
-
AccessibleAttribute.ROLE -
AccessibleAttribute.PARENT -
AccessibleAttribute.SCENE -
AccessibleAttribute.BOUNDS -
AccessibleAttribute.DISABLED -
AccessibleAttribute.FOCUSED -
AccessibleAttribute.VISIBLE
-
-
PAGE_ITEM
public static final AccessibleRole PAGE_ITEM
Page role.Attributes:
Actions:
-
PAGINATION
public static final AccessibleRole PAGINATION
Pagination role.Attributes:
Actions:
-
PARENT
public static final AccessibleRole PARENT
Parent role.Attributes:
Actions:
-
PASSWORD_FIELD
public static final AccessibleRole PASSWORD_FIELD
Password Field role.Attributes:
-
AccessibleAttribute.TEXT- must return null or empty string
-
-
PROGRESS_INDICATOR
public static final AccessibleRole PROGRESS_INDICATOR
Progress Indicator role.Attributes:
Actions:
-
RADIO_BUTTON
public static final AccessibleRole RADIO_BUTTON
Radio Button role.Attributes:
Actions:
-
RADIO_MENU_ITEM
public static final AccessibleRole RADIO_MENU_ITEM
Radio Menu Item role.Attributes:
Actions:
-
SLIDER
public static final AccessibleRole SLIDER
-
SPINNER
public static final AccessibleRole SPINNER
Spinner role.Attributes:
Actions:
-
TEXT
public static final AccessibleRole TEXT
Text role.Attributes:
Actions:
-
TEXT_AREA
public static final AccessibleRole 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
public static final AccessibleRole TEXT_FIELD
-
TOGGLE_BUTTON
public static final AccessibleRole TOGGLE_BUTTON
Toggle Button role.Attributes:
Actions:
-
TOOLTIP
public static final AccessibleRole TOOLTIP
Tooltip role.Attributes: Actions:
-
SCROLL_BAR
public static final AccessibleRole SCROLL_BAR
Scroll Bar role.Attributes:
Actions:
-
SCROLL_PANE
public static final AccessibleRole SCROLL_PANE
Scroll Pane role.Attributes:
Actions:
-
SPLIT_MENU_BUTTON
public static final AccessibleRole SPLIT_MENU_BUTTON
Split Menu Button role.Attributes:
Actions:
-
TAB_ITEM
public static final AccessibleRole TAB_ITEM
Tab Item role.Attributes:
Actions:
-
TAB_PANE
public static final AccessibleRole TAB_PANE
Tab Pane role.Attributes:
Actions:
-
TABLE_CELL
public static final AccessibleRole TABLE_CELL
Table Cell role.Attributes:
Actions:
-
TABLE_COLUMN
public static final AccessibleRole TABLE_COLUMN
Table Column role.Attributes:
Actions:
-
TABLE_ROW
public static final AccessibleRole TABLE_ROW
Table Row role.Attributes:
Actions:
-
TABLE_VIEW
public static final AccessibleRole 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
public static final AccessibleRole THUMB
Thumb role.Attributes:
Actions:
-
TITLED_PANE
public static final AccessibleRole TITLED_PANE
Titled Pane role.Attributes:
Actions:
-
TOOL_BAR
public static final AccessibleRole TOOL_BAR
Tool Bar role.Attributes:
Actions:
-
TREE_ITEM
public static final AccessibleRole TREE_ITEM
Tree Item role.Attributes:
Actions:
-
TREE_TABLE_CELL
public static final AccessibleRole TREE_TABLE_CELL
Tree Table Cell role.Attributes:
Actions:
-
TREE_TABLE_ROW
public static final AccessibleRole TREE_TABLE_ROW
-
TREE_TABLE_VIEW
public static final AccessibleRole 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
public static final AccessibleRole TREE_VIEW
-
-
Method Detail
-
values
public static AccessibleRole[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AccessibleRole c : AccessibleRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessibleRole valueOf(String name)
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
-
-