/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javafx.scene; /** * This enum describes the accessible role for a {@link 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. * * @see Node#setAccessibleRole(AccessibleRole) * @see Node#getAccessibleRole() * @see AccessibleAttribute#ROLE * @see Node#queryAccessibleAttribute(AccessibleAttribute, Object...) * @see Node#executeAccessibleAction(AccessibleAction, Object...) * * @since JavaFX 8u40 */ public enum AccessibleRole { /** * Button role. *

* Attributes: * * Actions: * */ BUTTON, /** * Check Box role. *

* Attributes: * * Actions: * */ CHECK_BOX, /** * Check Menu Item role. *

* Attributes: * * Actions: * */ CHECK_MENU_ITEM, /** * Combo Box role. *

* Attributes: * * Actions: * */ COMBO_BOX, /** * Context Menu role. *

* Attributes: * * Actions: * */ CONTEXT_MENU, /** * Date Picker role. *

* Attributes: * * Actions: * */ DATE_PICKER, /** * Decrement Button role. *

* Attributes: * * Actions: * */ DECREMENT_BUTTON, /** * Hyperlink role. *

* * Actions: * */ HYPERLINK, /** * Increment Button role. *

* Attributes: * * Actions: * */ INCREMENT_BUTTON, /** * Image View role. *

* Attributes: * * Actions: * *

* It is strongly recommended that a text description of the image be provided * for each {@link ImageView}. This can be done by setting either * {@link Node#accessibleTextProperty()} for the {@link ImageView} * or by using {@link AccessibleAttribute#LABELED_BY}. *

*/ IMAGE_VIEW, /** * List View role. *

* Attributes: * * Actions: * */ LIST_VIEW, /** * List Item role. *

* Attributes: * * Actions: * */ LIST_ITEM, /** * Menu role. *

* Attributes: * * Actions: * */ MENU, /** * Menu Bar role. *

* Attributes: * * Actions: * */ MENU_BAR, /** * Menu Button role. *

* Attributes: * * Actions: * */ MENU_BUTTON, /** * Menu Item role. *

* Attributes: * * Actions: * */ MENU_ITEM, /** * Node role. *

* Attributes: * * Actions: * * Optional Attributes: * * Optional Actions: * */ NODE, /** * Page role. *

* Attributes: * * Actions: * */ PAGE_ITEM, /** * Pagination role. *

* Attributes: * * Actions: * */ PAGINATION, /** * Parent role. *

* Attributes: * * Actions: * */ PARENT, /** * Password Field role. *

* Attributes: * * Actions: * */ PASSWORD_FIELD, /** * Progress Indicator role. *

* Attributes: * * Actions: * */ PROGRESS_INDICATOR, /** * Radio Button role. *

* Attributes: * * Actions: * */ RADIO_BUTTON, /** * Radio Menu Item role. *

* Attributes: * * Actions: * */ RADIO_MENU_ITEM, /** * Slider role. *

* Attributes: * * Actions: * */ SLIDER, /** * Spinner role. *

* Attributes: * * Actions: * */ SPINNER, /** * Text role. *

* Attributes: * * Actions: * */ TEXT, /** * Text Area role. *

* Attributes: * * Actions: * */ TEXT_AREA, /** * Text Field role. *

* Attributes: * * Actions: * */ TEXT_FIELD, /** * Toggle Button role. *

* Attributes: * * Actions: * */ TOGGLE_BUTTON, /** * Tooltip role. *

* Attributes: * * Actions: * */ TOOLTIP, /** * Scroll Bar role. *

* Attributes: * * Actions: * */ SCROLL_BAR, /** * Scroll Pane role. *

* Attributes: * * Actions: * */ SCROLL_PANE, /** * Split Menu Button role. *

* Attributes: * * Actions: * */ SPLIT_MENU_BUTTON, /** * Tab Item role. *

* Attributes: * * Actions: * */ TAB_ITEM, /** * Tab Pane role. *

* Attributes: * * Actions: * */ TAB_PANE, /** * Table Cell role. *

* Attributes: * * Actions: * */ TABLE_CELL, /** * Table Column role. *

* Attributes: * * Actions: * */ TABLE_COLUMN, /** * Table Row role. *

* Attributes: * * Actions: * */ TABLE_ROW, /** * Table View role. *

* Attributes: * * Actions: * */ TABLE_VIEW, /** * Thumb role. *

* Attributes: * * Actions: * */ THUMB, /** * Titled Pane role. *

* Attributes: * * Actions: * */ TITLED_PANE, /** * Tool Bar role. *

* Attributes: * * Actions: * */ TOOL_BAR, /** * Tree Item role. *

* Attributes: * * Actions: * */ TREE_ITEM, /** * Tree Table Cell role. *

* Attributes: * * Actions: * */ TREE_TABLE_CELL, /** * Tree Table Row role. *

* Attributes: * * Actions: * */ TREE_TABLE_ROW, /** * Tree Table View role. *

* Attributes: * * Actions: * */ TREE_TABLE_VIEW, /** * Tree View role. *

* Attributes: * * Actions: * */ TREE_VIEW, }