Record Class MountTransitionWidget
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.MountTransitionWidget
- Record Components:
onlyFirstMount
- whether to restart the transition upon remount. Defaults totrue
.
- All Implemented Interfaces:
Widget
public record MountTransitionWidget(MountTransitionWidget.Builder builder, Duration duration, boolean onlyFirstMount)
extends Record
implements Widget
A widget that facilitates creating entrance transitions.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface dev.pfaff.altargui.Widget
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionMountTransitionWidget
(MountTransitionWidget.Builder builder, Duration duration) MountTransitionWidget
(MountTransitionWidget.Builder builder, Duration duration, boolean onlyFirstMount) Creates an instance of aMountTransitionWidget
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thebuilder
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull WidgetInstance
Instantiates an instance of the widget.boolean
Returns the value of theonlyFirstMount
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.Widget
atAbsolutePosition, atAlignment, atCenter, atRelativePosition, expand, expandHeight, expandWidth, withAbsoluteHeight, withAbsoluteSize, withAbsoluteWidth, withAspectRatio, withAspectRatio, withAspectRatio, withBackground, withBackgroundColor, withBackgroundTexture, withBorder, withHorizontalMargin, withHorizontalMargin, withId, withKey, withMargin, withMargin, withMarginBottom, withMarginEnd, withMarginStart, withMarginTop, withMultiChildAttributes, withSymmetricMargin, withTooltip, withVerticalMargin, withVerticalMargin, wrap
-
Constructor Details
-
MountTransitionWidget
-
MountTransitionWidget
public MountTransitionWidget(MountTransitionWidget.Builder builder, Duration duration, boolean onlyFirstMount) Creates an instance of aMountTransitionWidget
record class.- Parameters:
builder
- the value for thebuilder
record componentduration
- the value for theduration
record componentonlyFirstMount
- the value for theonlyFirstMount
record component
-
-
Method Details
-
instantiate
Description copied from interface:Widget
Instantiates an instance of the widget.- Specified by:
instantiate
in interfaceWidget
-
toString
-
hashCode
-
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 '=='. -
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
onlyFirstMount
public boolean onlyFirstMount()Returns the value of theonlyFirstMount
record component.- Returns:
- the value of the
onlyFirstMount
record component
-