Interface Layout
public interface Layout
Layout
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSectionViewBuilder
(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.boolean
Get true or false if there are new structure that needs to persist.void
Remove all new structure of the layout.void
removeSectionViewBuilder
(SectionViewBuilder sectionViewBuilder) Remove the sectionViewBuilder in the new structure of the layout.void
setDescription
(String description) Set the description of the layout.void
Set the name of the layout.void
setSectionViewBuilders
(List<SectionViewBuilder> sectionViewBuilders) Set the new structure of the layout.
-
Method Details
-
getId
Integer getId()Get the id of the layout.- Returns:
- the id of the layout
-
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
-
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
-
getSections
List<SectionView> getSections()Get the unmodified stored structure of the layout.- Returns:
- the stored structure of the layout
-
setSectionViewBuilders
Set the new structure of the layout. This needs to persist to take effect.- Parameters:
sectionViewBuilders
- the structure of the layout
-
addSectionViewBuilder
Add the new section in the new structure of the layout. This needs to persist to take effect.- Parameters:
sectionViewBuilder
- the structure of the layout
-
removeSectionViewBuilder
Remove the sectionViewBuilder in the new structure of the layout. This needs to persist to take effect- Parameters:
sectionViewBuilder
- the section builder of the layout
-
removeAllSectionViewBuilders
void removeAllSectionViewBuilders()Remove all new structure of the layout. This needs to persist to take effect. -
getModifiedStructure
List<SectionViewBuilder> getModifiedStructure()Get all new structure of the layout. This structure needs to persist to take effect.- Returns:
- List of section view builder
-
isModifiedStructure
boolean isModifiedStructure()Get true or false if there are new structure that needs to persist.- Returns:
- true or false
-
getFields
Get all fields in the structure in the current layout- Returns:
- List of field
-
getFieldsInModifiedStructure
Get all fields in the modified structure of layout- Returns:
- List of field
-