Class GenericTypeSelectorPage

    • Field Detail

      • SCLASS_ELEMENT_BOX

        protected static final java.lang.String SCLASS_ELEMENT_BOX
        See Also:
        Constant Field Values
      • SCLASS_ELEMENT_IMAGE

        protected static final java.lang.String SCLASS_ELEMENT_IMAGE
        See Also:
        Constant Field Values
      • SCLASS_ELEMENT_NAME

        protected static final java.lang.String SCLASS_ELEMENT_NAME
        See Also:
        Constant Field Values
      • SCLASS_ELEMENT_DESC

        protected static final java.lang.String SCLASS_ELEMENT_DESC
        See Also:
        Constant Field Values
      • PREDEFINED_VALUES

        public static final java.lang.String PREDEFINED_VALUES
        See Also:
        Constant Field Values
      • PARENT_WIZARD_CREATE_CONTEXT

        public static final java.lang.String PARENT_WIZARD_CREATE_CONTEXT
        See Also:
        Constant Field Values
      • COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE

        public static final java.lang.String COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE
        See Also:
        Constant Field Values
      • TYPE_SELECTOR_CONTAINER_PAGE_SCLASS

        protected static final java.lang.String TYPE_SELECTOR_CONTAINER_PAGE_SCLASS
        See Also:
        Constant Field Values
      • TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS

        protected static final java.lang.String TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS
        See Also:
        Constant Field Values
      • TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS

        protected static final java.lang.String TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS
        See Also:
        Constant Field Values
      • DEFAULT_ELEMENT_IMAGE

        public static final java.lang.String DEFAULT_ELEMENT_IMAGE
        See Also:
        Constant Field Values
      • rootSelectorType

        protected ObjectType rootSelectorType
    • Constructor Detail

      • GenericTypeSelectorPage

        public GenericTypeSelectorPage()
      • GenericTypeSelectorPage

        public GenericTypeSelectorPage​(CreateContext createContext)
      • GenericTypeSelectorPage

        public GenericTypeSelectorPage​(java.lang.String pageTitle,
                                       Wizard wizard,
                                       CreateContext createContext)
    • Method Detail

      • setCreateContext

        public void setCreateContext​(CreateContext createContext)
      • getIcon

        protected java.lang.String getIcon​(TemplateListEntry data)
        Gets the url to an icon resource for the given type.
      • createOnSelectListener

        protected org.zkoss.zk.ui.event.EventListener createOnSelectListener​(org.zkoss.zul.Listbox listbox)
        Creates event listener for handling selection events when user selects a type from the list.
      • getAllSubTypes

        protected java.util.List<ObjectType> getAllSubTypes​(java.lang.String typeCode)
        Recursively gets subtypes of type
      • getChosenType

        public java.lang.Object getChosenType()
        Returns:
        the chosenType
      • getRootSelectorType

        public ObjectType getRootSelectorType()
        Returns:
        the rootSelectorType
      • getTemplateListEntry

        protected java.util.List<TemplateListEntry> getTemplateListEntry()
      • isInExclusiveCreateMode

        protected boolean isInExclusiveCreateMode()
      • mergeGivenTypes

        protected java.util.Set<ObjectType> mergeGivenTypes​(java.util.Collection<ObjectType> wizardConfigExcludedTypes,
                                                            java.util.List<java.lang.String> additionalExcluded)
      • getTypeService

        protected TypeService getTypeService()
      • isDisplaySubtypes

        public boolean isDisplaySubtypes()
        Returns:
        the displaySubtypes
      • setDisplaySubtypes

        public void setDisplaySubtypes​(boolean displaySubtypes)
        Parameters:
        displaySubtypes - the displaySubtypes to set
      • setRootSelectorType

        public void setRootSelectorType​(ObjectType rootSelectorType)
        Parameters:
        rootSelectorType - the rootSelectorType to set
      • getAllowCreateTypes

        public java.util.List<java.lang.String> getAllowCreateTypes()
        Returns:
        the allowCreateTypes
      • setAllowCreateTypes

        public void setAllowCreateTypes​(java.util.List<java.lang.String> allowCreateTypes)
        Parameters:
        allowCreateTypes - the allowCreateTypes to set
      • getExcludeCreateTypes

        public java.util.List<java.lang.String> getExcludeCreateTypes()
        Returns:
        the excludeCreateTypes
      • setExcludeCreateTypes

        public void setExcludeCreateTypes​(java.util.List<java.lang.String> excludeCreateTypes)
        Parameters:
        excludeCreateTypes - the excludeCreateTypes to set