Enum Class Accessible.Action
- All Implemented Interfaces:
Serializable,Comparable<Accessible.Action>,Constable
- Enclosing class:
Accessible
The list is in two parts and the split is not tidiness. The first thirteen are
parameterless verbs, and those are what a node publishes in its ActionFacet.
The last four take an Accessible.Argument and are never published in that list, because
one of the three platforms cannot express a parameterised action in its action list at all
and puts these on its value and text interfaces instead. What advertises a parameterised
setter is a facet's presence: a node with a writable ValueFacet is settable, a node
with a TextFacet and without Accessible.State.READ_ONLY is editable.
A node accepts exactly the parameterless verbs it publishes, plus the setters its
writable facets imply: the published snapshot is the only synchronous authority a bridge
has, so a verb a widget accepts but does not publish is one every platform refuses before it
is posted. A widget that answers a synonym publishes the synonym. A facet implies its
setter only on a node that is Accessible.State.ENABLED: a disabled field keeps its true
writability and accepts no text, rather than being published read-only.
AccessibleNode.accepts(limn.accessibility.Accessible.Action) is the rule in one call.
Every one of the seventeen is dispatched the same way, through the one inbound call a bridge makes.
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 ConstantDescriptionAdd this node to its container's selection, keeping what is already selected: the platform's "add to selection", which is only meaningful where more than one member may be selected.Dismiss this node.Close this node.Move this node's value one step down.Remove this node from its container's selection, keeping the rest.Open this node.Move the keyboard focus here.Move this node's value one step up.Activate this node, as a click would.Scroll this node into view.Make this node its container's selection, as a click would: whatever was selected before is not any more, in a single- or a multi-select container alike.Move this node's caret; takes anAccessible.Argument.OfRangewhose ends are equal.Set this node's text selection; takes anAccessible.Argument.OfRange.Replace this node's text; takes anAccessible.Argument.OfText.Set this node's numeric value; takes anAccessible.Argument.OfValue.Open this node's menu.Flip this node's checked state. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this verb takes no argument and is therefore publishable in anActionFacet.static Accessible.ActionReturns the enum constant of this class with the specified name.static Accessible.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRESS
Activate this node, as a click would. -
TOGGLE
Flip this node's checked state. -
EXPAND
Open this node. -
COLLAPSE
Close this node. -
SELECT
Make this node its container's selection, as a click would: whatever was selected before is not any more, in a single- or a multi-select container alike. Published on a member of a container whose selection mode allows it. Moves the cursor onto the node. -
ADD_TO_SELECTION
Add this node to its container's selection, keeping what is already selected: the platform's "add to selection", which is only meaningful where more than one member may be selected. Published on an unselected member of a multi-select container, and nowhere else. -
DESELECT
Remove this node from its container's selection, keeping the rest. Published on a selected member of a multi-select container. -
SHOW_MENU
Open this node's menu. -
INCREMENT
Move this node's value one step up. -
DECREMENT
Move this node's value one step down. -
SCROLL_INTO_VIEW
Scroll this node into view. -
FOCUS
Move the keyboard focus here. On a widget it is the walk's free verb, offered on every focusable node. On an item inside a container it means move the cursor here without selecting, so it is published only where the cursor and the selection are separate things — a tree row, a table cell, a calendar day, a date segment, a menu row, a combo option — and refused where they are one (a list row, a segment), because there a focus that selected would be a select by another name. -
CANCEL
Dismiss this node. -
SET_VALUE
Set this node's numeric value; takes anAccessible.Argument.OfValue. -
SET_TEXT
Replace this node's text; takes anAccessible.Argument.OfText. -
SET_CARET
Move this node's caret; takes anAccessible.Argument.OfRangewhose ends are equal. -
SET_SELECTION
Set this node's text selection; takes anAccessible.Argument.OfRange.
-
-
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
-
isParameterless
public boolean isParameterless()Whether this verb takes no argument and is therefore publishable in anActionFacet.- Returns:
truefor the thirteen parameterless verbs
-