Package limn.accessibility
Enum Class AccessibleEvent.Type
- All Implemented Interfaces:
Serializable,Comparable<AccessibleEvent.Type>,Constable
- Enclosing class:
AccessibleEvent
What happened. Every constant here has a truthful mapping on at least one platform, and
nothing is invented to fill a gap: two of them are deliberately answered by silence on
platforms whose vocabulary has no equivalent.
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 ConstantDescriptionThe focused node's cursor moved: one per publish, on the focused node, carrying the previous and current active descendant asAccessibleEvent.oldValue()andAccessibleEvent.newValue()— an identifier that may belong to another window's tree when the cursor resolves across a native popup's relation (AccessibleTree.holds(long)says which).The application said something;AccessibleEvent.politeness()says whether it interrupts.This node's box moved or resized.This node's caret moved.This node's description changed.The keyboard focus moved to this node.Everything about this window may have changed.An assistive technology pressed this node and the press succeeded.A menu closed: aMENUnode left the tree.A menu opened: aMENUnode entered the tree (a context menu, a menu bar's dropdown, a submenu).This node's name changed.This node has left the tree, and anything a client holds for it is now stale.What this container has selected changed: one per container per publish, carrying the members that entered and left its selection (AccessibleEvent.addedMembers(),AccessibleEvent.removedMembers()) and whether it selects more than one at once.One of this node's states changed;AccessibleEvent.state()says which.This node's children changed: one per surviving parent per publish, carrying the children that were added under it (new in the tree, or moved here from another parent), removed from it (gone from the tree, or moved to another parent) and reordered among their surviving siblings, each with its index.This node's text changed; the offsets say where.This node's text selection changed.This node's value changed: its number, its displayed text, or whether it holds a number at all (ValueFacet.empty()).This window took the desktop's focus.A window's tree is going away.This window lost it.A window's tree became readable. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessibleEvent.TypeReturns the enum constant of this class with the specified name.static AccessibleEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOCUS_CHANGED
The keyboard focus moved to this node. -
ACTIVE_DESCENDANT_CHANGED
The focused node's cursor moved: one per publish, on the focused node, carrying the previous and current active descendant asAccessibleEvent.oldValue()andAccessibleEvent.newValue()— an identifier that may belong to another window's tree when the cursor resolves across a native popup's relation (AccessibleTree.holds(long)says which). Never raised on an unfocused container. -
STRUCTURE_CHANGED
This node's children changed: one per surviving parent per publish, carrying the children that were added under it (new in the tree, or moved here from another parent), removed from it (gone from the tree, or moved to another parent) and reordered among their surviving siblings, each with its index. A subtree that appears under a parent that is itself new is reported once, as one added child on the nearest surviving ancestor, and never per node inside it. -
NAME_CHANGED
This node's name changed. -
DESCRIPTION_CHANGED
This node's description changed. -
STATE_CHANGED
One of this node's states changed;AccessibleEvent.state()says which. -
VALUE_CHANGED
This node's value changed: its number, its displayed text, or whether it holds a number at all (ValueFacet.empty()). The event carries the two numbers; the text is read off the tree the event was handed with. -
SELECTION_CHANGED
What this container has selected changed: one per container per publish, carrying the members that entered and left its selection (AccessibleEvent.addedMembers(),AccessibleEvent.removedMembers()) and whether it selects more than one at once. The container is the member's selection container: the nearest ancestor with aSelectionFacet, climbed to from the member's published parent through synthetic ancestors only. A member that arrived selected in this publish and one that left the tree selected are counted too. -
TEXT_CHANGED
This node's text changed; the offsets say where. -
CARET_MOVED
This node's caret moved. -
TEXT_SELECTION_CHANGED
This node's text selection changed. -
BOUNDS_CHANGED
This node's box moved or resized. -
NODE_DESTROYED
This node has left the tree, and anything a client holds for it is now stale. -
MENU_OPENED
A menu opened: aMENUnode entered the tree (a context menu, a menu bar's dropdown, a submenu). Raised before the focus or the cursor moves into it, as Windows'MenuOpenedand macOS'sAXMenuOpenedare, so a reader hears that a menu is up and then where it stands. A menu bar is not a menu. -
MENU_CLOSED
A menu closed: aMENUnode left the tree. Carries the identifier it had, which names nothing any more; a bridge that says so addresses what it still holds for it. -
WINDOW_OPENED
A window's tree became readable. Raised by a bridge as it takes its scene. -
WINDOW_CLOSED
A window's tree is going away. Raised by a bridge as it lets its scene go. -
WINDOW_ACTIVATED
This window took the desktop's focus. -
WINDOW_DEACTIVATED
This window lost it. -
ANNOUNCEMENT
The application said something;AccessibleEvent.politeness()says whether it interrupts. -
INVOKED
An assistive technology pressed this node and the press succeeded. Not raised for a press the user made with a pointer, which leaves no difference between two trees to find. -
INVALIDATED
Everything about this window may have changed. The event a bounded queue collapses to when a single difference is wider than it can carry; a bridge handling it reconciles whatever it holds against the tree it was last handed, rather than replaying anything. What follows it in the same publish is the reserved tail: the structure changes per parent, the final focus change, the cursor change, the selection changes per container and the window's activation, which are kept outside the budget so that a bridge that swept still hears where the user is.
-
-
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
-