Class 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 Detail

      • TypeSelectorSectionRenderer

        public TypeSelectorSectionRenderer()
    • Method Detail

      • 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)
      • 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​(java.lang.String typeCode)
      • addSubtypes

        protected java.util.Collection<java.lang.String> addSubtypes​(java.util.Collection<java.lang.String> typeCodes)
      • createOpenBrowserComponent

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

        protected void openSearchBrowser​(java.lang.String rootTypeCode)
      • setTypeCodes

        public void setTypeCodes​(java.lang.String[] typeCodes)
      • setInactiveTypeCodes

        public void setInactiveTypeCodes​(java.lang.String[] inactiveTypeCodes)
      • setIncludeSubtypes

        public void setIncludeSubtypes​(boolean includeSubtypes)
      • isIncludeSubtypes

        public boolean isIncludeSubtypes()
      • setDisplayType

        public void setDisplayType​(java.lang.String type)
      • getDisplayType

        public java.lang.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)