Package limn.accessibility
Record Class WindowFacet
java.lang.Object
java.lang.Record
limn.accessibility.WindowFacet
- Record Components:
modal- whether this window blocks input to the windows it ownscanMaximize- whether the desktop offers a maximize actioncanMinimize- whether it offers a minimize actionstate- whether the window is currently normal, minimized or maximized
public record WindowFacet(boolean modal, boolean canMaximize, boolean canMinimize, WindowFacet.State state)
extends Record
A node that is a real top-level window.
Only a node that is a window carries this. A dialog rendered inside another window's
scene is not one: it cannot be closed, maximized or minimized by the desktop, and publishing
this facet on it would advertise four operations it does not have. Such a dialog carries
Accessible.State.MODAL and its platform's own is-a-dialog property instead.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow a window is currently presented. -
Constructor Summary
ConstructorsConstructorDescriptionWindowFacet(boolean modal, boolean canMaximize, boolean canMinimize, WindowFacet.State state) Creates an instance of aWindowFacetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanMaximizerecord component.booleanReturns the value of thecanMinimizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmodal()Returns the value of themodalrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WindowFacet
public WindowFacet(boolean modal, boolean canMaximize, boolean canMinimize, WindowFacet.State state) Creates an instance of aWindowFacetrecord class.- Parameters:
modal- the value for themodalrecord componentcanMaximize- the value for thecanMaximizerecord componentcanMinimize- the value for thecanMinimizerecord componentstate- the value for thestaterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
modal
public boolean modal()Returns the value of themodalrecord component.- Returns:
- the value of the
modalrecord component
-
canMaximize
public boolean canMaximize()Returns the value of thecanMaximizerecord component.- Returns:
- the value of the
canMaximizerecord component
-
canMinimize
public boolean canMinimize()Returns the value of thecanMinimizerecord component.- Returns:
- the value of the
canMinimizerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-