Record Class FiniteScrollListWidget
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.FiniteScrollListWidget
- All Implemented Interfaces:
Widget
public record FiniteScrollListWidget(int count, FiniteScrollListWidget.KeyFunction keyFunction, FiniteScrollListWidget.Builder builder)
extends Record
implements Widget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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.KeyFunction keyFunction, FiniteScrollListWidget.Builder builder) Creates an instance of aFiniteScrollListWidget
record class. -
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) 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.Returns the value of thekeyFunction
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, withBackground, withBackgroundColor, withBackgroundTexture, withBorder, withHorizontalMargin, withHorizontalMargin, withId, withKey, withMargin, withMargin, withMarginBottom, withMarginEnd, withMarginStart, withMarginTop, 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.Builder builder) Creates an instance of aFiniteScrollListWidget
record class.- Parameters:
count
- the value for thecount
record componentkeyFunction
- the value for thekeyFunction
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) -
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 '=='. -
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
keyFunction
Returns the value of thekeyFunction
record component.- Returns:
- the value of the
keyFunction
record component
-
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-