-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSection.StateA state of a Section.
-
Field Summary
Fields Modifier and Type Field Description private final Section.State<T>stateprivate final Function1<SectionContentScope, Unit>headerContentprivate final Function1<SectionContentScope, Unit>loadingContentprivate final IntegerloadingContentCountprivate final Function2<SectionContentScope, T, Unit>loadedContentprivate final Function1<SectionContentScope, Unit>failedContentprivate final Function1<SectionContentScope, Unit>emptyContentprivate final Function1<SectionContentScope, Unit>footerContentprivate final BooleandisplayFooterOnlyOnLoadedState
-
Constructor Summary
Constructors Constructor Description Section(Section.State<T> state, Function1<SectionContentScope, Unit> headerContent, Function1<SectionContentScope, Unit> loadingContent, Integer loadingContentCount, Function2<SectionContentScope, T, Unit> loadedContent, Function1<SectionContentScope, Unit> failedContent, Function1<SectionContentScope, Unit> emptyContent, Function1<SectionContentScope, Unit> footerContent, Boolean displayFooterOnlyOnLoadedState)
-
Method Summary
Modifier and Type Method Description final Section.State<T>getState()final Function1<SectionContentScope, Unit>getHeaderContent()final Function1<SectionContentScope, Unit>getLoadingContent()final IntegergetLoadingContentCount()final Function2<SectionContentScope, T, Unit>getLoadedContent()final Function1<SectionContentScope, Unit>getFailedContent()final Function1<SectionContentScope, Unit>getEmptyContent()final Function1<SectionContentScope, Unit>getFooterContent()final BooleangetDisplayFooterOnlyOnLoadedState()-
-
Constructor Detail
-
Section
Section(Section.State<T> state, Function1<SectionContentScope, Unit> headerContent, Function1<SectionContentScope, Unit> loadingContent, Integer loadingContentCount, Function2<SectionContentScope, T, Unit> loadedContent, Function1<SectionContentScope, Unit> failedContent, Function1<SectionContentScope, Unit> emptyContent, Function1<SectionContentScope, Unit> footerContent, Boolean displayFooterOnlyOnLoadedState)
-
-
Method Detail
-
getState
final Section.State<T> getState()
-
getHeaderContent
final Function1<SectionContentScope, Unit> getHeaderContent()
-
getLoadingContent
final Function1<SectionContentScope, Unit> getLoadingContent()
-
getLoadingContentCount
final Integer getLoadingContentCount()
-
getLoadedContent
final Function2<SectionContentScope, T, Unit> getLoadedContent()
-
getFailedContent
final Function1<SectionContentScope, Unit> getFailedContent()
-
getEmptyContent
final Function1<SectionContentScope, Unit> getEmptyContent()
-
getFooterContent
final Function1<SectionContentScope, Unit> getFooterContent()
-
getDisplayFooterOnlyOnLoadedState
final Boolean getDisplayFooterOnlyOnLoadedState()
-
-
-
-