/* * 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 actions that an assistive technology * such as a screen reader can request from the scene graph. * * The {@link AccessibleRole} dictates the set of actions that * the screen reader will request for a particular control. For * example, a push button normally fires an event to indicate * that it was pressed in response to the FIRE action. *

* An action may have any number of parameters, depending on the particular action. *

* * @see Node#executeAccessibleAction(AccessibleAction, Object...) * @see AccessibleRole * @see AccessibleAttribute#ROLE * * @since JavaFX 8u40 */ public enum AccessibleAction { /** * Request that the node be decremented by a large value. * A smaller decrement is requested using {@link #DECREMENT}. *

Used by Slider, ScrollBar, and others

* * Parameters: * */ BLOCK_DECREMENT, /** * Request that the node be incremented by a large value. * A smaller increment is requested using {@link #INCREMENT}. *

Used by Slider, ScrollBar, and others

* * Parameters: * */ BLOCK_INCREMENT, /** * Request that the node should become collapsed. *

Used by TreeItem, TitledPane, and others

* * Parameters: * */ COLLAPSE, /** * Request that the node be decremented by a small value. * A larger decrement is requested using {@link #BLOCK_DECREMENT}. *

Used by Slider, ScrollBar, and others

* * Parameters: * */ DECREMENT, /** * Request that the node should become expanded. *

Used by TreeItem, TitledPane, and others

* * Parameters: * */ EXPAND, /** * Fires the primary action for the node. For example, a push * button will normally send an action event to notify listeners * that is has been activated. * * *

Used by Button, Hyperlink, and others

* * Parameters: * */ FIRE, /** * Request that the node be incremented by a small value. * A larger increment is requested using {@link #BLOCK_INCREMENT}. *

Used by Slider, ScrollBar, and others

* * Parameters: * */ INCREMENT, /** * Request that the node take focus. By default, a node will * request focus using {@link javafx.scene.Node#requestFocus()}. * Both JavaFX and the assisteve technology have the concept of * a focus node and most of the time, they are the same. * In some cases, a control might want the JavaFX focus to remain * on the parent, while the assistive technology focus is on the child. * For example, a table may respond to this request by setting focus * to a cell inside the table before allowing the default to run. * *

Used by Node, TabItem, TableCell and others

* * Parameters: * */ REQUEST_FOCUS, /** * Request the node to show an item, scrolling if required. *

Used by ListView, TreeView, and others

* * Parameters: * */ SHOW_ITEM, /** * Request the node to show a text range, scrolling if required. *

Used by TextField and TextArea.

* * Parameters: * */ SHOW_TEXT_RANGE, /** * Request the node to set the selection to a list of items. *

Used by ListView, TreeView, and others

* * Parameters: * */ SET_SELECTED_ITEMS, /** * Request the node to set the selection to range of text. *

Used by TextField and TextArea.

* * Parameters: * */ SET_TEXT_SELECTION, /** * Request the node to set the current text. *

Used by TextField and TextArea.

* * Parameters: * */ SET_TEXT, /** * Request the node to set the current value. *

Used by Slider, Scrollbars, and others

* * Parameters: * */ SET_VALUE, /** * Request the node to show a menu. If the node is a control, * then the context menu for the control is shown. If the node * is a menu, then the submenu for the menu is shown. * *

Used by Node, Menu

* * Parameters: * */ SHOW_MENU, }