- All Implemented Interfaces:
Serializable
,Comparable<AccessibleAction>
,Constable
This enum describes the actions that an assistive technology
such as a screen reader can request from the scene graph.
The
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.
- 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 ConstantDescriptionRequest that the node be decremented by a large value.Request that the node be incremented by a large value.Request that the node should become collapsed.Request that the node be decremented by a small value.Request that the node should become expanded.Fires the primary action for the node.Request that the node be incremented by a small value.Request that the node take focus.Request the node to set the selection to a list of items.Request the node to set the current text.Request the node to set the selection to range of text.Request the node to set the current value.Request the node to show an item, scrolling if required.Request the node to show a menu.Request the node to show a text range, scrolling if required. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessibleAction
Returns the enum constant of this class with the specified name.static AccessibleAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_DECREMENT
Request that the node be decremented by a large value. A smaller decrement is requested usingDECREMENT
.Used by Slider, ScrollBar, and others
-
BLOCK_INCREMENT
Request that the node be incremented by a large value. A smaller increment is requested usingINCREMENT
.Used by Slider, ScrollBar, and others
-
COLLAPSE
Request that the node should become collapsed.Used by TreeItem, TitledPane, and others
-
DECREMENT
Request that the node be decremented by a small value. A larger decrement is requested usingBLOCK_DECREMENT
.Used by Slider, ScrollBar, and others
-
EXPAND
Request that the node should become expanded.Used by TreeItem, TitledPane, and others
-
FIRE
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
-
INCREMENT
Request that the node be incremented by a small value. A larger increment is requested usingBLOCK_INCREMENT
.Used by Slider, ScrollBar, and others
-
REQUEST_FOCUS
Request that the node take focus. By default, a node will request focus usingNode.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
-
SHOW_ITEM
Request the node to show an item, scrolling if required.Used by ListView, TreeView, and others
Parameters:-
Node
the item to show
-
-
SHOW_TEXT_RANGE
-
SET_SELECTED_ITEMS
Request the node to set the selection to a list of items.Used by ListView, TreeView, and others
Parameters:-
ObservableList
<Node
> the items to select
-
-
SET_TEXT_SELECTION
-
SET_TEXT
Request the node to set the current text.Used by TextField and TextArea.
Parameters:-
String
the new text
-
-
SET_VALUE
Request the node to set the current value.Used by Slider, Scrollbars, and others
Parameters:-
Double
the new value
-
-
SHOW_MENU
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
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-