Interface Layout
public interface Layout
Layout
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddSectionViewBuilder(SectionViewBuilder sectionViewBuilder) Add the new section in the new structure of the layout.Get the description of the layout.Get all fields in the structure in the current layoutGet all fields in the modified structure of layoutgetId()Get the id of the layout.Get all new structure of the layout.getName()Get the name of the layout.Get the unmodified stored structure of the layout.booleanGet true or false if there are new structure that needs to persist.voidRemove all new structure of the layout.voidremoveSectionViewBuilder(SectionViewBuilder sectionViewBuilder) Remove the sectionViewBuilder in the new structure of the layout.voidsetDescription(String description) Set the description of the layout.voidSet the name of the layout.voidsetSectionViewBuilders(List<SectionViewBuilder> sectionViewBuilders) Set the new structure of the layout.
- 
Method Details- 
getIdInteger getId()Get the id of the layout.- Returns:
- the id of the layout
 
- 
getNameString getName()Get the name of the layout.- Returns:
- the name of the layout
 
- 
setNameSet the name of the layout.- Parameters:
- name- the name of the layout
 
- 
getDescriptionString getDescription()Get the description of the layout.- Returns:
- the description of the layout
 
- 
setDescriptionSet the description of the layout.- Parameters:
- description- the description of the layout
 
- 
getSectionsList<SectionView> getSections()Get the unmodified stored structure of the layout.- Returns:
- the stored structure of the layout
 
- 
setSectionViewBuildersSet the new structure of the layout. This needs to persist to take effect.- Parameters:
- sectionViewBuilders- the structure of the layout
 
- 
addSectionViewBuilderAdd the new section in the new structure of the layout. This needs to persist to take effect.- Parameters:
- sectionViewBuilder- the structure of the layout
 
- 
removeSectionViewBuilderRemove the sectionViewBuilder in the new structure of the layout. This needs to persist to take effect- Parameters:
- sectionViewBuilder- the section builder of the layout
 
- 
removeAllSectionViewBuildersvoid removeAllSectionViewBuilders()Remove all new structure of the layout. This needs to persist to take effect.
- 
getModifiedStructureList<SectionViewBuilder> getModifiedStructure()Get all new structure of the layout. This structure needs to persist to take effect.- Returns:
- List of section view builder
 
- 
isModifiedStructureboolean isModifiedStructure()Get true or false if there are new structure that needs to persist.- Returns:
- true or false
 
- 
getFieldsGet all fields in the structure in the current layout- Returns:
- List of field
 
- 
getFieldsInModifiedStructureGet all fields in the modified structure of layout- Returns:
- List of field
 
 
-