Class TypeSelectorSectionRenderer
java.lang.Object
de.hybris.platform.cockpit.components.navigationarea.renderer.AbstractNavigationAreaSectionRenderer
de.hybris.platform.cockpit.components.navigationarea.renderer.TypeSelectorSectionRenderer
- All Implemented Interfaces:
SectionRenderer
Navigation area section renderer that displays a type list or tree and opens a search browser model when click on a
type in the list/tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>addSubtypes(Collection<String> typeCodes) protected org.zkoss.zul.ListitemcreateOpenBrowserComponent(String typeCode) intprotected org.zkoss.zul.TreeModelgetTreeModel(Section section) protected TreeUtils.TreeStategetTreeState(Section section) booleanprotected booleanisRootType(String typeCode) booleanprotected booleanisShowTypeCode(Section section) protected voidopenSearchBrowser(String rootTypeCode) voidrender(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) protected voidrenderList(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) Renders a type listprotected voidrenderTree(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) Renders a type treevoidsetAllowDuplicates(boolean allowDuplicates) voidsetBrowserModelFactory(BrowserModelFactory browserModelFactory) voidsetCockpitTypeService(TypeService cockpitTypeService) voidsetDisplayType(String type) voidsetInactiveTypeCodes(String[] inactiveTypeCodes) voidsetIncludeSubtypes(boolean includeSubtypes) voidsetPageSize(int pageSize) voidsetSearchable(boolean searchable) protected voidsetTreeModel(org.zkoss.zul.Tree tree, org.zkoss.zul.TreeModel model, Section section) voidsetTypeCodes(String[] typeCodes) voidsetTypeDefinitionDao(TypeDefinitionDao typeDefinitionDao) protected voidshowTypeCode(boolean value, Section section) Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.renderer.AbstractNavigationAreaSectionRenderer
createBrowserItemTooltip, createList, getNavigationArea, getSectionPanelModel, setNavigationArea
-
Constructor Details
-
TypeSelectorSectionRenderer
public TypeSelectorSectionRenderer()
-
-
Method Details
-
render
public void render(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) - Specified by:
renderin interfaceSectionRenderer- Specified by:
renderin classAbstractNavigationAreaSectionRenderer
-
renderTree
protected void renderTree(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) Renders a type tree- Parameters:
panel- the section panel which triggered the renderingcaptionComponent- the caption component of the sectionsection- the section
-
setTreeModel
protected void setTreeModel(org.zkoss.zul.Tree tree, org.zkoss.zul.TreeModel model, Section section) -
getTreeModel
-
isShowTypeCode
-
showTypeCode
-
getTreeState
-
renderList
protected void renderList(SectionPanel panel, org.zkoss.zk.ui.Component parent, org.zkoss.zk.ui.Component captionComponent, Section section) Renders a type list- Parameters:
panel- the section panel which triggered the renderingcaptionComponent- the caption component of the sectionsection- the section
-
isRootType
-
addSubtypes
-
createOpenBrowserComponent
-
openSearchBrowser
-
setTypeCodes
-
setInactiveTypeCodes
-
setIncludeSubtypes
public void setIncludeSubtypes(boolean includeSubtypes) -
isIncludeSubtypes
public boolean isIncludeSubtypes() -
setDisplayType
-
getDisplayType
-
setCockpitTypeService
-
getCockpitTypeService
-
setPageSize
public void setPageSize(int pageSize) -
getPageSize
public int getPageSize() -
setSearchable
public void setSearchable(boolean searchable) -
isSearchable
public boolean isSearchable() -
setBrowserModelFactory
-
setTypeDefinitionDao
-
setAllowDuplicates
public void setAllowDuplicates(boolean allowDuplicates)
-