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

public class TypeSelectorSectionRenderer extends AbstractNavigationAreaSectionRenderer
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 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:
      render in interface SectionRenderer
      Specified by:
      render in class AbstractNavigationAreaSectionRenderer
    • 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 rendering
      captionComponent - the caption component of the section
      section - the section
    • setTreeModel

      protected void setTreeModel(org.zkoss.zul.Tree tree, org.zkoss.zul.TreeModel model, Section section)
    • getTreeModel

      protected org.zkoss.zul.TreeModel getTreeModel(Section section)
    • isShowTypeCode

      protected boolean isShowTypeCode(Section section)
    • showTypeCode

      protected void showTypeCode(boolean value, Section section)
    • getTreeState

      protected TreeUtils.TreeState getTreeState(Section section)
    • 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 rendering
      captionComponent - the caption component of the section
      section - the section
    • isRootType

      protected boolean isRootType(String typeCode)
    • addSubtypes

      protected Collection<String> addSubtypes(Collection<String> typeCodes)
    • createOpenBrowserComponent

      protected org.zkoss.zul.Listitem createOpenBrowserComponent(String typeCode)
    • openSearchBrowser

      protected void openSearchBrowser(String rootTypeCode)
    • setTypeCodes

      public void setTypeCodes(String[] typeCodes)
    • setInactiveTypeCodes

      public void setInactiveTypeCodes(String[] inactiveTypeCodes)
    • setIncludeSubtypes

      public void setIncludeSubtypes(boolean includeSubtypes)
    • isIncludeSubtypes

      public boolean isIncludeSubtypes()
    • setDisplayType

      public void setDisplayType(String type)
    • getDisplayType

      public String getDisplayType()
    • setCockpitTypeService

      public void setCockpitTypeService(TypeService cockpitTypeService)
    • getCockpitTypeService

      public TypeService getCockpitTypeService()
    • setPageSize

      public void setPageSize(int pageSize)
    • getPageSize

      public int getPageSize()
    • setSearchable

      public void setSearchable(boolean searchable)
    • isSearchable

      public boolean isSearchable()
    • setBrowserModelFactory

      public void setBrowserModelFactory(BrowserModelFactory browserModelFactory)
    • setTypeDefinitionDao

      public void setTypeDefinitionDao(TypeDefinitionDao typeDefinitionDao)
    • setAllowDuplicates

      public void setAllowDuplicates(boolean allowDuplicates)