Package limn.accessibility
Enum Class Accessible.State
- All Implemented Interfaces:
Serializable,Comparable<Accessible.State>,Constable
- Enclosing class:
Accessible
What is true of a node. Only what all three platforms carry as a flag is here, with one
exception that says why it is one (
AUTOCOMPLETES); anything a
facet expresses is derived from that facet rather than stored twice, which is why
CHECKED, MIXED, EXPANDED, EXPANDABLE, SELECTED
and READ_ONLY are on this list and are still not a widget's to set directly.
Three pairs are deliberately separate and are never conflated. ENABLED against
READ_ONLY: every platform separates them, and merging them makes a disabled field
announce as read-only and leaves a genuinely read-only enabled field inexpressible.
VISIBLE against SHOWING: offscreen is not invisible, and a scrolled-away
list row is visible and not showing. And ENABLED against FOCUSABLE:
enabled is what may be operated, focusable is what the Tab key reaches, and a label is the
first and not the second.
A 1.x minor release may add constants to this enum: a switch over it needs a
default branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis node is the active descendant of its container.Typing here filters or completes from a list this node controls, which it names withAccessible.Relation.CONTROLLER_FORwhile the list is shown: an editable combo box's field.This node is working and its value is not yet meaningful.This node is checked.This node is what Enter activates when nothing else has the focus.This node's value may be edited.This node may be operated.This node opens and closes.This node is expanded.The Tab key can land here.This node holds the keyboard focus.Operating this node opens a menu or a list.This node's value runs left to right or right to left rather than up and down.This node's value has failed validation.This node is neither checked nor unchecked.This node blocks input to everything outside it.This node's text is more than one line.This node's text is masked and must never be spoken.This node is being pressed right now.This node's value may be read and not written.This node must be filled in.This node can be selected.This node is selected.This node has pixels on screen: visible, laid out, and not clipped fully away.This node's value runs up and down.This node is not hidden. -
Method Summary
Modifier and TypeMethodDescriptionstatic Accessible.StateReturns the enum constant of this class with the specified name.static Accessible.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
This node may be operated. Inherited: a node is enabled only if it and every ancestor are, and a node outside the topmost modal overlay is not, whatever its own flag says. -
FOCUSABLE
The Tab key can land here. Inherited the same wayENABLEDis, so the set of nodes carrying this is exactly the set the scene's focus traversal can reach. -
FOCUSED
This node holds the keyboard focus. -
VISIBLE
This node is not hidden. Inherited: a descendant of a hidden widget is not visible. -
SHOWING
This node has pixels on screen: visible, laid out, and not clipped fully away. -
SELECTABLE
This node can be selected. -
SELECTED
This node is selected. Derived fromSelectionItemFacet. -
CHECKED
This node is checked. Derived fromToggleFacet. -
MIXED
This node is neither checked nor unchecked. Derived fromToggleFacet. -
PRESSED
This node is being pressed right now. -
EXPANDED
This node is expanded. Derived fromExpandFacet. -
EXPANDABLE
This node opens and closes. Derived from the presence of anExpandFacet, on every node that carries one (a menu title, a submenu row, a combo box, a tree row, the calendar's title), so a reader on the one platform that speaks "collapsed" as a state of its own can be told the difference between a row that is closed and a row that cannot open. -
HAS_POPUP
Operating this node opens a menu or a list. -
READ_ONLY
This node's value may be read and not written. Derived fromTextFacet. -
EDITABLE
This node's value may be edited. -
MULTI_LINE
This node's text is more than one line. -
PASSWORD
This node's text is masked and must never be spoken. -
INVALID
This node's value has failed validation. -
REQUIRED
This node must be filled in. -
BUSY
This node is working and its value is not yet meaningful. -
MODAL
This node blocks input to everything outside it. -
ACTIVE
This node is the active descendant of its container. -
DEFAULT
This node is what Enter activates when nothing else has the focus. -
HORIZONTAL
This node's value runs left to right or right to left rather than up and down. -
VERTICAL
This node's value runs up and down. -
AUTOCOMPLETES
Typing here filters or completes from a list this node controls, which it names withAccessible.Relation.CONTROLLER_FORwhile the list is shown: an editable combo box's field. The one state on this list that only one platform carries as a flag, AT-SPI2'sSUPPORTS_AUTOCOMPLETION; UI Automation and AppKit have no such flag and read the relation alone. Orca stays on the field as the list narrows under it only when both are there, and otherwise reads the list again at every keystroke that moves its selection.
-
-
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
-