Interface ListComponent

All Superinterfaces:
Buildable<ListComponent,ListComponent.Builder>, BuildableComponent<ListComponent,ListComponent.Builder>, Component

public interface ListComponent extends BuildableComponent<ListComponent,ListComponent.Builder>
A component that contains a list of components.
  • Method Details

    • components

      static ListComponent.Builder components()
      Creates a new list component builder.
    • components

      static ListComponent components(Component... components)
      Creates a new list component with the specified components.
      Parameters:
      components - the components
      Returns:
      the list component
    • components

      static ListComponent components(Collection<Component> components)
      Creates a new list component with the specified components.
      Parameters:
      components - the components
      Returns:
      the list component
    • components

      static ListComponent components(ComponentColor textColor, Component... components)
      Creates a new list component with the specified text color and components.
      Parameters:
      textColor - the text color
      components - the components
      Returns:
      the list component
    • components

      static ListComponent components(ComponentColor textColor, Collection<Component> components)
      Creates a new list component with the specified text color and components.
      Parameters:
      textColor - the text color
      components - the components
      Returns:
      the list component
    • components

      static ListComponent components(TextStyle textStyle, Component... components)
      Creates a new list component with the specified text textStyle and components.
      Parameters:
      textStyle - the text textStyle
      components - the components
      Returns:
      the list component
    • components

      static ListComponent components(TextStyle textStyle, Collection<Component> components)
      Creates a new list component with the specified text textStyle and components.
      Parameters:
      textStyle - the text textStyle
      components - the components
      Returns:
      the list component
    • getComponents

      List<Component> getComponents()
      Returns the components in this list component.