Record Class SelectionFacet
- Record Components:
multiSelectable- whether more than one descendant may be selected at oncerequired- whether at least one descendant is always selected
Which descendants are selected is not stored here. It is on the descendants themselves, in
their SelectionItemFacet, so one fact has one home. What is here is the container's own
shape and nothing else.
Where the keyboard cursor is inside a container is not a fact of the container either.
It is the tree's: AccessibleTree.activeDescendant() is the first node published
Accessible.State.ACTIVE below the focused node, whichever containers lie between, and one
event names the focused node when it moves. Until 2026-09-14 this record carried an
activeDescendant resolved per container, so a combo's layer and its list, or a menu
surface and each of its columns, announced one arrow key two or three times over, and a container
nobody was in announced a cursor nobody had.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionFacet(boolean multiSelectable, boolean required) Creates an instance of aSelectionFacetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themultiSelectablerecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SelectionFacet
public SelectionFacet(boolean multiSelectable, boolean required) Creates an instance of aSelectionFacetrecord class.- Parameters:
multiSelectable- the value for themultiSelectablerecord componentrequired- the value for therequiredrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
multiSelectable
public boolean multiSelectable()Returns the value of themultiSelectablerecord component.- Returns:
- the value of the
multiSelectablerecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-