Enum Class Change.Aspect
- All Implemented Interfaces:
Serializable,Comparable<Change.Aspect>,Constable
- Enclosing interface:
Change
The list is in three parts, and the parts are not decoration — the accessor obligation applies to the first part only.
State aspects name something the widget still is after the notification, and a
public accessor answers every one of them. Event aspects name something that
happened and is over; nothing answers them, by construction, and the notification is the
whole of the information — a watcher that missed one has missed it. LAYOUT
is neither: it is one marker per layout pass, sourced at the scene's root, and what it says
is re-read the bounds you hold.
A 1.x minor release may add constants to this enum, as OPACITY was
added for the Opacity container and TRANSFORM for the
Transform one: a switch over the aspects that names
every one of them still needs a default branch, which is where an aspect added
later arrives.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe active descendant: the row a popup highlights, the cell a table focuses.Which widgets the tree holds under this one.A run of changes ended: a drag released, a value committed.The accessible description: a tooltip, a placeholder.Whether the widget takes input: its own flag (Widget.isSelfEnabled()) or the state that flag and its ancestors' make (Widget.isEnabled()).Open or closed: a combo box's popup, a menu bar's menu.Whether the widget holds focus: one on the widget losing it, one on the widget gaining it.Whether the widget can take focus.The widget was invoked: a button pressed, a row opened.A layout pass ran: re-read the bounds you hold.The widget's own label, the thing a reader speaks first.How opaque anOpacitycontainer draws its child,Opacity.opacity(), announced on the container: a picture and nothing else, which no accessibility bridge reads.What the value may be: a minimum, a maximum, a step, an indeterminate flag.Which of the widget's children or rows are chosen.The widget's content was submitted: Enter in a search field.The text of an editable widget.Where aTransformcontainer draws its child: its translation, its scale, its origin and the turn of a flip, announced on the container.Whether what the widget holds is valid, and the message that says why not.The widget's own value: a slider's position, a checkbox's flag, a colour.Whether the widget is shown. -
Method Summary
Modifier and TypeMethodDescriptionstatic Change.AspectReturns the enum constant of this class with the specified name.static Change.Aspect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VALUE
The widget's own value: a slider's position, a checkbox's flag, a colour. -
RANGE
What the value may be: a minimum, a maximum, a step, an indeterminate flag. -
SELECTION
Which of the widget's children or rows are chosen. -
TEXT
The text of an editable widget. Only ever aChange.TextEdit. -
ACTIVE
The active descendant: the row a popup highlights, the cell a table focuses. -
EXPANDED
Open or closed: a combo box's popup, a menu bar's menu. -
NAME
The widget's own label, the thing a reader speaks first. -
DESCRIPTION
The accessible description: a tooltip, a placeholder. -
VALIDITY
Whether what the widget holds is valid, and the message that says why not. -
ENABLED
Whether the widget takes input: its own flag (Widget.isSelfEnabled()) or the state that flag and its ancestors' make (Widget.isEnabled()). Announced on the widget whose flagsetEnabledchanged, then on every descendant whoseisEnabled()changed with it, in tree order; never on a descendant whose state did not move, as one disabled by its own flag or under another disabled container. -
VISIBLE
Whether the widget is shown. -
FOCUSABLE
Whether the widget can take focus. -
FOCUS
Whether the widget holds focus: one on the widget losing it, one on the widget gaining it. -
CHILDREN
Which widgets the tree holds under this one. -
OPACITY
How opaque anOpacitycontainer draws its child,Opacity.opacity(), announced on the container: a picture and nothing else, which no accessibility bridge reads. AsetOpacitythat changes the value announces it every time; afadeToannounces only its start and its end. -
TRANSFORM
Where aTransformcontainer draws its child: its translation, its scale, its origin and the turn of a flip, announced on the container. A picture and the bounds published for it, with nothing laid out again. A direct set that changes a value announces it every time; a motion announces only its start and its end. -
INVOKED
The widget was invoked: a button pressed, a row opened. -
COMMITTED
A run of changes ended: a drag released, a value committed. -
SUBMITTED
The widget's content was submitted: Enter in a search field. -
LAYOUT
A layout pass ran: re-read the bounds you hold. Sourced at the scene's root.
-
-
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
-