Class Container
java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.core.Widget
com.ultikits.ultitools.abstracts.gui.declarative.widgets.Container
Container is a widget that can hold multiple child Widgets.
It is responsible for:
- managing the list of child Widgets
- assigning slots to child Widgets
Usage example:
Container.builder()
.child(ItemDisplay.builder(item).build())
.child(TextButton.builder().text("Click").build())
.build();
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- UltiTools Team
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Container.Builderbuilder()Creates a new Builder.@NotNull ElementCreates the Element corresponding to this Widget.
-
Field Details
-
children
-
-
Constructor Details
-
Container
-
-
Method Details
-
builder
Creates a new Builder.- Returns:
- the Builder
-
getChildren
-
createElement
Description copied from class:WidgetCreates the Element corresponding to this Widget.This is a framework-internal method; subclasses should return the Element implementation appropriate to the Widget type.
- StatelessWidget returns a
StatelessElement - StatefulWidget returns a
StatefulElement - RenderObjectWidget returns a
RenderObjectElement
- Specified by:
createElementin classWidget- Returns:
- the corresponding Element instance
- StatelessWidget returns a
-