Interface ListComponent.Builder
- All Superinterfaces:
Buildable.Builder<ListComponent,,ListComponent.Builder> BuildableComponent.Builder<ListComponent,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 TypeMethodDescriptionAppends the given component to this builder.default ListComponent.BuilderAppends the given components to this builder.append(Collection<Component> components) Appends the given components to this builder.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
setTextStyle
-
Method Details
-
setComponents
Sets the components of the list component.- Parameters:
components- the components- Returns:
- this builder
-
append
Appends the given component to this builder.- Parameters:
component- the component- Returns:
- this builder
-
append
Appends the given components to this builder.- Parameters:
components- the components- Returns:
- this builder
-
append
Appends the given components to this builder.- Parameters:
components- the components- Returns:
- this builder
-