public enum AccessibleAttribute extends Enum<AccessibleAttribute>
AccessibleRole
dictates the set of attributes that
the screen reader will request for a particular control. For
example, a slider is expected to return a double that represents
the current value.
Attributes may have any number of parameters, depending on the particular attribute.
When the value of an attribute is changed by a node, it must notify the assistive technology
using Node.notifyAccessibleAttributeChanged(AccessibleAttribute)
. This will allow
the screen reader to inform the user that a value has changed. The most common form of
notification is focus change.
Node.queryAccessibleAttribute(AccessibleAttribute, Object...)
,
Node.notifyAccessibleAttributeChanged(AccessibleAttribute)
,
AccessibleRole
,
ROLE
Enum Constant and Description |
---|
ACCELERATOR
Returns the accelerator for the node.
|
BOUNDS
Returns the bounds for the node.
|
BOUNDS_FOR_RANGE
Returns the array of bounding rectangles for the given character range.
|
CARET_OFFSET
Returns the caret offset for the node.
|
CELL_AT_ROW_COLUMN
Returns the cell at the given row and column indices.
|
CHILDREN
Returns the children for the node.
|
COLUMN_AT_INDEX
Returns the column at the given index.
|
COLUMN_COUNT
Returns the column count for the node.
|
COLUMN_INDEX
Returns the column index for the node.
|
CONTENTS
Returns the contents of the node.
|
DATE
Returns the local date for the node.
|
DISABLED
Returns true if the node is disabled, otherwise false.
|
DISCLOSURE_LEVEL
Returns the depth of a row in the disclosure hierarchy.
|
EDITABLE
Returns true if the node is editable, otherwise false.
|
EXPANDED
Returns true if the node is expanded, otherwise false.
|
FOCUS_ITEM
Returns the focus item.
|
FOCUS_NODE
Returns the focus node.
|
FOCUSED
Returns true if the node is focused, otherwise false.
|
FONT
Returns the font for the node.
|
HEADER
Returns the header for the node.
|
HELP
Returns the help text for the node.
|
HORIZONTAL_SCROLLBAR
Returns the horizontal scroll bar for the node.
|
INDETERMINATE
Returns true of the node is indeterminaite, otherwise false.
|
INDEX
Returns the index for the node.
|
ITEM_AT_INDEX
Returns the item at the given index.
|
ITEM_COUNT
Returns the item count for the node.
|
LABELED_BY
Returns the node that is the label for this node.
|
LEAF
Returns true if the node is a leaf element, otherwise false.
|
LINE_END
Returns the line end offset of the given line index.
|
LINE_FOR_OFFSET
Returns the line index of the given character offset.
|
LINE_START
Returns the line start offset of the given line index.
|
MAX_VALUE
Returns the maximum value for the node.
|
MIN_VALUE
Returns the minimum value for the node.
|
MNEMONIC
Returns the mnemonic for the node.
|
MULTIPLE_SELECTION
Returns true if the node allows for multiple selection, otherwise false.
|
NODE_AT_POINT
Returns the node at the given location.
|
OFFSET_AT_POINT
Returns the character offset at the given location.
|
ORIENTATION
Returns the orientation of the node.
|
OVERFLOW_BUTTON
Return the overflow button for the node.
|
PARENT
Returns the parent for the node.
|
PARENT_MENU
Returns the parent menu for the node.
|
ROLE
Returns the role for the node.
|
ROLE_DESCRIPTION
Returns the role description for the node.
|
ROW_AT_INDEX
Returns the row at the given index.
|
ROW_COUNT
Returns the row count for the node.
|
ROW_INDEX
Returns the row index of the node.
|
SCENE
Returns the scene for the node.
|
SELECTED
Returns true if the node is selected, otherwise false.
|
SELECTED_ITEMS
Returns the list of selected items for the node.
|
SELECTION_END
Returns the text selection end offset for the node.
|
SELECTION_START
Returns the text selection start offset for the node.
|
SUBMENU
Returns the sub menu for the node.
|
TEXT
Returns the text for the node.
|
TREE_ITEM_AT_INDEX
Returns a tree item at the given index, relative to its TREE_ITEM_PARENT.
|
TREE_ITEM_COUNT
Returns the tree item count for the node, relative to its TREE_ITEM_PARENT.
|
TREE_ITEM_PARENT
Returns the parent item for the item, or null if the item is the root.
|
VALUE
Returns the value for the node.
|
VERTICAL_SCROLLBAR
Returns the vertical scroll bar for the node.
|
VISIBLE
Returns true if node is visible, otherwise false.
|
VISITED
Returns true if the node has been visited, otherwise false.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getReturnType() |
static AccessibleAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessibleAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessibleAttribute ACCELERATOR
KeyCombination
public static final AccessibleAttribute BOUNDS
Bounds
public static final AccessibleAttribute BOUNDS_FOR_RANGE
public static final AccessibleAttribute CARET_OFFSET
Integer
public static final AccessibleAttribute CHILDREN
ObservableList
<Node
> public static final AccessibleAttribute COLUMN_AT_INDEX
public static final AccessibleAttribute CELL_AT_ROW_COLUMN
public static final AccessibleAttribute COLUMN_COUNT
Integer
public static final AccessibleAttribute COLUMN_INDEX
Integer
public static final AccessibleAttribute CONTENTS
Node
public static final AccessibleAttribute DISABLED
Boolean
public static final AccessibleAttribute DISCLOSURE_LEVEL
Integer
public static final AccessibleAttribute DATE
LocalDate
public static final AccessibleAttribute EDITABLE
Boolean
public static final AccessibleAttribute EXPANDED
Boolean
public static final AccessibleAttribute FOCUS_ITEM
Used for controls such as TabPane, TableView, ListView where the assistive technology focus is different from the normal focus node. For example, a table control will have focus, while a cell inside the table might have the screen reader focus.
Node
public static final AccessibleAttribute FOCUS_NODE
When this attribute is requested from the Scene, the default implementation
returns Scene.focusOwnerProperty()
.
Node
public static final AccessibleAttribute FOCUSED
Boolean
public static final AccessibleAttribute FONT
Font
public static final AccessibleAttribute HEADER
Node
public static final AccessibleAttribute HELP
String
public static final AccessibleAttribute HORIZONTAL_SCROLLBAR
Node
public static final AccessibleAttribute INDETERMINATE
Boolean
public static final AccessibleAttribute ITEM_AT_INDEX
public static final AccessibleAttribute ITEM_COUNT
Integer
public static final AccessibleAttribute INDEX
Integer
public static final AccessibleAttribute LABELED_BY
When Label.labelFor
is set,
the default implementation of LABELED_BY
uses this
relationship to return the appropriate node to the screen
reader.
Node
public static final AccessibleAttribute LEAF
Boolean
public static final AccessibleAttribute LINE_END
public static final AccessibleAttribute LINE_FOR_OFFSET
public static final AccessibleAttribute LINE_START
public static final AccessibleAttribute MIN_VALUE
Double
public static final AccessibleAttribute MAX_VALUE
Double
public static final AccessibleAttribute MNEMONIC
String
public static final AccessibleAttribute MULTIPLE_SELECTION
Boolean
public static final AccessibleAttribute NODE_AT_POINT
public static final AccessibleAttribute OFFSET_AT_POINT
public static final AccessibleAttribute ORIENTATION
Orientation
public static final AccessibleAttribute OVERFLOW_BUTTON
Node
public static final AccessibleAttribute PARENT
Parent
public static final AccessibleAttribute PARENT_MENU
Node
public static final AccessibleAttribute ROLE
AccessibleRole
public static final AccessibleAttribute ROLE_DESCRIPTION
String
public static final AccessibleAttribute ROW_AT_INDEX
public static final AccessibleAttribute ROW_COUNT
Integer
public static final AccessibleAttribute ROW_INDEX
Integer
public static final AccessibleAttribute SCENE
Scene
public static final AccessibleAttribute SELECTED
Boolean
public static final AccessibleAttribute SELECTED_ITEMS
ObservableList
<Node
> public static final AccessibleAttribute SELECTION_END
Integer
public static final AccessibleAttribute SELECTION_START
Integer
public static final AccessibleAttribute SUBMENU
Node
public static final AccessibleAttribute TEXT
String
public static final AccessibleAttribute TREE_ITEM_AT_INDEX
public static final AccessibleAttribute TREE_ITEM_COUNT
Integer
public static final AccessibleAttribute TREE_ITEM_PARENT
Node
public static final AccessibleAttribute VALUE
Double
public static final AccessibleAttribute VERTICAL_SCROLLBAR
Node
public static final AccessibleAttribute VISIBLE
Boolean
public static final AccessibleAttribute VISITED
Boolean
public static AccessibleAttribute[] values()
for (AccessibleAttribute c : AccessibleAttribute.values()) System.out.println(c);
public static AccessibleAttribute 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 nullpublic Class<?> getReturnType()
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.