Record Class TaskBuilder<T>
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.TaskBuilder<T>
- Record Components:
task
- The task to listen to. Tracked by identity.builder
- The builder function. Tracked by identity, low overhead of change.
- All Implemented Interfaces:
Widget
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface dev.pfaff.altargui.Widget
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionTaskBuilder
(Task<T> task, TaskBuilder.Builder<T> builder) Creates an instance of aTaskBuilder
record class.TaskBuilder
(Task<T> task, Function<T, @NonNull Widget> successBuilder, Function<Throwable, @NonNull Widget> failureBuilder) TaskBuilder
(Task<T> task, Function<T, @NonNull Widget> successBuilder, Function<Throwable, @NonNull Widget> failureBuilder, @NonNull Widget childWhileLoading) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thebuilder
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.@NonNull WidgetInstance
Instantiates an instance of the widget.task()
Returns the value of thetask
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, 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
-
TaskBuilder
-
TaskBuilder
-
TaskBuilder
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
task
-
builder
-