public enum AccessibleAction extends Enum<AccessibleAction>
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.
Node.executeAccessibleAction(AccessibleAction, Object...)
,
AccessibleRole
,
AccessibleAttribute.ROLE
Enum Constant and Description |
---|
BLOCK_DECREMENT
Request that the node be decremented by a large value.
|
BLOCK_INCREMENT
Request that the node be incremented by a large value.
|
COLLAPSE
Request that the node should become collapsed.
|
DECREMENT
Request that the node be decremented by a small value.
|
EXPAND
Request that the node should become expanded.
|
FIRE
Fires the primary action for the node.
|
INCREMENT
Request that the node be incremented by a small value.
|
REQUEST_FOCUS
Request that the node take focus.
|
SET_SELECTED_ITEMS
Request the node to set the selection to a list of items.
|
SET_TEXT
Request the node to set the current text.
|
SET_TEXT_SELECTION
Request the node to set the selection to range of text.
|
SET_VALUE
Request the node to set the current value.
|
SHOW_ITEM
Request the node to show an item, scrolling if required.
|
SHOW_MENU
Request the node to show a menu.
|
SHOW_TEXT_RANGE
Request the node to show a text range, scrolling if required.
|
Modifier and Type | Method and Description |
---|---|
static AccessibleAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessibleAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessibleAction BLOCK_DECREMENT
DECREMENT
.
Used by Slider, ScrollBar, and others
Parameters:public static final AccessibleAction BLOCK_INCREMENT
INCREMENT
.
Used by Slider, ScrollBar, and others
Parameters:public static final AccessibleAction COLLAPSE
Used by TreeItem, TitledPane, and others
Parameters:public static final AccessibleAction DECREMENT
BLOCK_DECREMENT
.
Used by Slider, ScrollBar, and others
Parameters:public static final AccessibleAction EXPAND
Used by TreeItem, TitledPane, and others
Parameters:public static final AccessibleAction FIRE
Used by Button, Hyperlink, and others
Parameters:public static final AccessibleAction INCREMENT
BLOCK_INCREMENT
.
Used by Slider, ScrollBar, and others
Parameters:public static final AccessibleAction REQUEST_FOCUS
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:public static final AccessibleAction SHOW_ITEM
Used by ListView, TreeView, and others
Parameters:Node
the item to show public static final AccessibleAction SHOW_TEXT_RANGE
public static final AccessibleAction SET_SELECTED_ITEMS
Used by ListView, TreeView, and others
Parameters:ObservableList
<Node
> the items to select public static final AccessibleAction SET_TEXT_SELECTION
public static final AccessibleAction SET_TEXT
Used by TextField and TextArea.
Parameters:String
the new textpublic static final AccessibleAction SET_VALUE
Used by Slider, Scrollbars, and others
Parameters:Double
the new value public static final AccessibleAction SHOW_MENU
Used by Node, Menu
Parameters:public static AccessibleAction[] values()
for (AccessibleAction c : AccessibleAction.values()) System.out.println(c);
public static AccessibleAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.