Interface LayoutBuilder


public interface LayoutBuilder
Layout builder.
  • Method Details

    • getName

      String getName()
      Get the name of the layout.
      Returns:
      the name of the layout
    • setName

      LayoutBuilder setName(String name)
      Set the name of the layout.
      Parameters:
      name - the name of the layout
      Returns:
      the layout builder itself
    • getDescription

      String getDescription()
      Get the description of the layout.
      Returns:
      the description of the layout
    • setDescription

      LayoutBuilder setDescription(String description)
      Set the description of the layout.
      Parameters:
      description - the description of the layout
      Returns:
      the layout builder itself
    • getSections

      List<SectionViewBuilder> getSections()
      Get all section view builders
      Returns:
      list of section view builder
    • addSection

      LayoutBuilder addSection(SectionViewBuilder section)
      Add new section builder into layout. Keeps the insertion order
      Parameters:
      section - section view builder
      Returns:
      LayoutBuilder
    • addSections

      LayoutBuilder addSections(SectionViewBuilder... sectionViewBuilders)
      Add new section builders into layout. Keep the insert order
      Parameters:
      sectionViewBuilders -
      Returns:
      LayoutBuilder
    • setSections

      LayoutBuilder setSections(List<SectionViewBuilder> sections)
      Set section builders into layout. Keeps the insertion order
      Parameters:
      sections - list of section view builder
      Returns:
      LayoutBuilder
    • removeAllSections

      LayoutBuilder removeAllSections()
      Remove all sections of the layout.
      Returns:
      the layout builder itself