public class ValoSideBar.DefaultSectionComponentFactory extends Object implements AbstractSideBar.SectionComponentFactory<CssLayout>
ValoSideBar.SectionComponentFactory that adds the section header
and items directly to the composition root.| Constructor and Description |
|---|
DefaultSectionComponentFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
createSection(CssLayout 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. |
public void setItemComponentFactory(AbstractSideBar.ItemComponentFactory itemComponentFactory)
AbstractSideBar.SectionComponentFactoryItemComponentFactory to use when creating the items of the section. This method
is always called before the first invocation of AbstractSideBar.SectionComponentFactory.createSection(com.vaadin.ui.ComponentContainer, org.vaadin.spring.sidebar.SideBarSectionDescriptor, java.util.Collection).setItemComponentFactory in interface AbstractSideBar.SectionComponentFactory<CssLayout>itemComponentFactory - the item component factory, must not be null.public void createSection(CssLayout compositionRoot, SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors)
AbstractSideBar.SectionComponentFactorycreateSection in interface AbstractSideBar.SectionComponentFactory<CssLayout>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 © 2016. All rights reserved.