public class SideBar.DefaultSectionComponentFactory extends Object implements SideBar.SectionComponentFactory
SideBar.SectionComponentFactory that creates
a Panel with a VerticalLayout that contains the items.| Constructor and Description |
|---|
DefaultSectionComponentFactory() |
| Modifier and Type | Method and Description |
|---|---|
Component |
createSectionComponent(SideBarSectionDescriptor descriptor,
Collection<SideBarItemDescriptor> itemDescriptors)
Creates a component to be added as a tab to the
SideBar. |
void |
setItemComponentFactory(SideBar.ItemComponentFactory itemComponentFactory)
Sets the
ItemComponentFactory to use when creating the items of the section. |
public void setItemComponentFactory(SideBar.ItemComponentFactory itemComponentFactory)
SideBar.SectionComponentFactoryItemComponentFactory to use when creating the items of the section.setItemComponentFactory in interface SideBar.SectionComponentFactoryitemComponentFactory - the item component factory, must not be null.public Component createSectionComponent(SideBarSectionDescriptor descriptor, Collection<SideBarItemDescriptor> itemDescriptors)
SideBar.SectionComponentFactorySideBar.createSectionComponent in interface SideBar.SectionComponentFactorydescriptor - 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.null.TabSheet.addTab(com.vaadin.ui.Component)Copyright © 2015. All rights reserved.