Class GridView.Builder<T>
java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.widgets.GridView.Builder<T>
- All Implemented Interfaces:
WidgetBuilder<GridView<T>>
Builder for GridView.
-
Field Details
-
startSlot
private int startSlot -
columns
private int columns -
children
-
key
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
startSlot
-
columns
-
child
-
children
-
items
public GridView.Builder<T> items(@NotNull @NotNull List<T> items, @NotNull @NotNull Function<T, Widget> itemBuilder) Sets the data list and the item-builder function.Each item is converted to a Widget and added to the child list as-is; position is no longer computed here — as of 6.3.0,
GridViewElementwrites the position at render time as parent data (D-11), applying uniformly to any Widget type rather than special-casingItemDisplay.- Parameters:
items- the data listitemBuilder- the builder function- Returns:
- the Builder
-
key
-
key
-
build
Description copied from interface:WidgetBuilderBuilds the Widget instance.- Specified by:
buildin interfaceWidgetBuilder<T>- Returns:
- the Widget instance
-