Interface LayoutBuilder
public interface LayoutBuilder
Layout builder.
-
Method Summary
Modifier and TypeMethodDescriptionaddSection
(SectionViewBuilder section) Add new section builder into layout.addSections
(SectionViewBuilder... sectionViewBuilders) Add new section builders into layout.Get the description of the layout.getName()
Get the name of the layout.Get all section view buildersRemove all sections of the layout.setDescription
(String description) Set the description of the layout.Set the name of the layout.setSections
(List<SectionViewBuilder> sections) Set section builders into layout.
-
Method Details
-
getName
String getName()Get the name of the layout.- Returns:
- the name of the layout
-
setName
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
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
Add new section builder into layout. Keeps the insertion order- Parameters:
section
- section view builder- Returns:
- LayoutBuilder
-
addSections
Add new section builders into layout. Keep the insert order- Parameters:
sectionViewBuilders
-- Returns:
- LayoutBuilder
-
setSections
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
-