public static interface AbstractSideBar.SectionComponentFactory<CR extends ComponentContainer>
| Modifier and Type | Method and Description |
|---|---|
void |
createSection(CR compositionRoot,
SideBarSectionDescriptor descriptor,
Collection<SideBarItemDescriptor> itemDescriptors)
Creates and adds the specified section and items to the composition root.
|
void |
setItemComponentFactory(AbstractSideBar.ItemComponentFactory itemComponentFactory)
Sets the
ItemComponentFactory to use when creating the items of the section. |
void setItemComponentFactory(AbstractSideBar.ItemComponentFactory itemComponentFactory)
ItemComponentFactory to use when creating the items of the section. This method
is always called before the first invocation of createSection(com.vaadin.ui.ComponentContainer, org.vaadin.spring.sidebar.SideBarSectionDescriptor, java.util.Collection).itemComponentFactory - the item component factory, must not be null.void createSection(CR compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors)
compositionRoot - the component to which the section and items are to be added, must not be null.descriptor - the descriptor of the side bar section, must not be null.itemDescriptors - the descriptors of the items to be added to the section, must not be null nor empty.Copyright © 2017. All rights reserved.