Interface ListComponent.Builder
- All Superinterfaces:
Buildable.Builder<ListComponent,,ListComponent.Builder> BuildableComponent.Builder<ListComponent,,ListComponent.Builder> ComponentLike,TextStyle.Setter<ListComponent.Builder>
- Enclosing interface:
- ListComponent
public static interface ListComponent.Builder
extends BuildableComponent.Builder<ListComponent,ListComponent.Builder>
A builder for list components.
-
Method Summary
Modifier and TypeMethodDescriptionappend(ComponentLike... components) Appends components to the list component.setComponents(List<Component> components) Sets the components of the list component.Methods inherited from interface com.xpdustry.distributor.api.util.Buildable.Builder
build, modifyMethods inherited from interface com.xpdustry.distributor.api.component.BuildableComponent.Builder
asComponent, setTextStyleMethods inherited from interface com.xpdustry.distributor.api.component.style.TextStyle.Setter
addDecoration, setBackColor, setDecoration, setDecorations, setTextColor
-
Method Details
-
setComponents
Sets the components of the list component.- Parameters:
components- the components- Returns:
- this builder
-
append
Appends components to the list component.- Parameters:
components- the components- Returns:
- this builder
-