public class SectionBuilder<TSection extends AbstractSection>
extends java.lang.Object
| Constructor and Description |
|---|
SectionBuilder(TSection section) |
| Modifier and Type | Method and Description |
|---|---|
TSection |
build() |
static CompositeSectionBuilder |
createCompositeSection() |
<TDecorator extends SectionDecorator> |
decorateWith(Function<? super AbstractSection,? extends TDecorator> decoratorFactory) |
FooterDecoratorBuilder |
footer(AbstractViewCell footerViewCell) |
TSection |
getSection() |
HeaderDecoratorBuilder |
header(AbstractViewCell headerViewCell) |
ItemDividerBuilder |
separateWithDividers() |
ItemDividerBuilder |
separateWithDividers(Function<? super AbstractViewCell,? extends AbstractViewCell> viewCellFactory) |
EmptySectionBuilder |
showIfEmpty(AbstractViewCell emptyViewCell) |
static <TModel,TViewCell extends GenericViewCell<?,TModel>> |
wrap(HomogeneousSection<TModel,TViewCell> section) |
static <TSection extends AbstractSection> |
wrap(TSection section) |
public TSection extends AbstractSection section
public SectionBuilder(TSection section)
public TSection getSection()
public TSection build()
public static <TSection extends AbstractSection> SectionBuilder<TSection> wrap(TSection section)
public static <TModel,TViewCell extends GenericViewCell<?,TModel>> HomogeneousSectionBuilder<TModel,TViewCell> wrap(HomogeneousSection<TModel,TViewCell> section)
public static CompositeSectionBuilder createCompositeSection()
public HeaderDecoratorBuilder header(AbstractViewCell headerViewCell)
public FooterDecoratorBuilder footer(AbstractViewCell footerViewCell)
public EmptySectionBuilder showIfEmpty(AbstractViewCell emptyViewCell)
public ItemDividerBuilder separateWithDividers()
public ItemDividerBuilder separateWithDividers(Function<? super AbstractViewCell,? extends AbstractViewCell> viewCellFactory)
public <TDecorator extends SectionDecorator> SectionBuilder<TDecorator> decorateWith(Function<? super AbstractSection,? extends TDecorator> decoratorFactory)