Record Class MultiChildWidget
java.lang.Object
java.lang.Record
dev.pfaff.altargui.widgets.MultiChildWidget
- All Implemented Interfaces:
Widget
public record MultiChildWidget(@NotNull MultiChildWidget.Mode mode, MultiChildWidget.Builder builder)
extends Record
implements Widget
Builder is only guaranteed to be called when it changes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
FieldsFields inherited from interface dev.pfaff.altargui.Widget
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionMultiChildWidget
(@NotNull MultiChildWidget.Mode mode, MultiChildWidget.Builder builder) Creates an instance of aMultiChildWidget
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thebuilder
record component.static MultiChildWidget
col
(MultiChildWidget.Builder builder) static MultiChildWidget
static MultiChildWidget
diagonal
(MultiChildWidget.Builder builder) static MultiChildWidget
static MultiChildWidget
emptyCol()
static MultiChildWidget
static MultiChildWidget
emptyRow()
static MultiChildWidget
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.@NotNull MultiChildWidget.Mode
mode()
Returns the value of themode
record component.static MultiChildWidget
row
(MultiChildWidget.Builder builder) static MultiChildWidget
static MultiChildWidget
stack
(MultiChildWidget.Builder builder) static MultiChildWidget
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
-
-
Constructor Details
-
MultiChildWidget
public MultiChildWidget(@NotNull @NotNull MultiChildWidget.Mode mode, MultiChildWidget.Builder builder) Creates an instance of aMultiChildWidget
record class.- Parameters:
mode
- the value for themode
record componentbuilder
- the value for thebuilder
record component
-
-
Method Details
-
stack
-
row
-
col
-
diagonal
-
stack
-
row
-
col
-
diagonal
-
emptyStack
-
emptyCol
-
emptyRow
-
emptyDiagonal
-
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)
. -
mode
Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-