Record Class FiniteScrollListWidget
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.FiniteScrollListWidget
- All Implemented Interfaces:
Widget
public record FiniteScrollListWidget(int count, FiniteScrollListWidget.Builder builder)
extends Record
implements Widget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DebugLayer
static final DebugLayer
static final DebugLayer
Fields inherited from interface dev.pfaff.altargui.Widget
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionFiniteScrollListWidget
(int count, FiniteScrollListWidget.Builder builder) Creates an instance of aFiniteScrollListWidget
record class.FiniteScrollListWidget
(int count, FiniteScrollListWidget.KeyFunction keyFunction, FiniteScrollListWidget.WidgetFunction builder) FiniteScrollListWidget
(int count, FiniteScrollListWidget.WidgetFunction builder) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thebuilder
record component.int
count()
Returns the value of thecount
record component.static <T> FiniteScrollListWidget
create
(List<T> items, IndexedFunction<T, Key.CallSite> keyFunction, IndexedFunction<T, Widget> builder) static <T> FiniteScrollListWidget
create
(List<T> items, IndexedFunction<T, Widget> builder) 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
<FiniteScrollListWidget> Instantiates an instance of the widget.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
-
Field Details
-
DEBUG_LAYER_PRE_UNSCISSORED
-
DEBUG_LAYER_PRE_SCISSORED
-
DEBUG_LAYER_POST_UNSCISSORED
-
-
Constructor Details
-
FiniteScrollListWidget
public FiniteScrollListWidget(int count, FiniteScrollListWidget.KeyFunction keyFunction, FiniteScrollListWidget.WidgetFunction builder) -
FiniteScrollListWidget
-
FiniteScrollListWidget
Creates an instance of aFiniteScrollListWidget
record class.- Parameters:
count
- the value for thecount
record componentbuilder
- the value for thebuilder
record component
-
-
Method Details
-
create
public static <T> FiniteScrollListWidget create(List<T> items, IndexedFunction<T, Key.CallSite> keyFunction, IndexedFunction<T, Widget> builder) -
create
-
instantiate
@NotNull public @NotNull WidgetInstance<FiniteScrollListWidget> instantiate(WidgetInstantiationArgs args) 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 '=='. -
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-