Class GenericTypeSelectorPage

All Implemented Interfaces:
GenericItemWizardPage, WizardPage
Direct Known Subclasses:
ConstraintTypeSelectorPage

public class GenericTypeSelectorPage extends AbstractGenericItemPage
  • Field Details

  • Constructor Details

    • GenericTypeSelectorPage

      public GenericTypeSelectorPage()
    • GenericTypeSelectorPage

      public GenericTypeSelectorPage(CreateContext createContext)
    • GenericTypeSelectorPage

      public GenericTypeSelectorPage(String pageTitle, Wizard wizard, CreateContext createContext)
  • Method Details

    • setCreateContext

      public void setCreateContext(CreateContext createContext)
    • getController

      public WizardPageController getController()
      Specified by:
      getController in interface WizardPage
      Overrides:
      getController in class DefaultPage
    • createRepresentationItself

      public org.zkoss.zk.ui.Component createRepresentationItself()
      Description copied from class: AbstractGenericItemPage
      This is an general method responsible for creating UI representation of given page

      Note:
      Here we should create graphical representation of particular page

      Specified by:
      createRepresentationItself in interface GenericItemWizardPage
      Specified by:
      createRepresentationItself in class AbstractGenericItemPage
    • getIcon

      protected 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 List<ObjectType> getAllSubTypes(String typeCode)
      Recursively gets subtypes of type
    • getChosenType

      public Object getChosenType()
      Returns:
      the chosenType
    • getRootSelectorType

      public ObjectType getRootSelectorType()
      Returns:
      the rootSelectorType
    • filterAllowedTypeEntries

      protected List<TemplateListEntry> filterAllowedTypeEntries(List<TemplateListEntry> entries)
    • getTemplateListEntry

      protected List<TemplateListEntry> getTemplateListEntry()
    • isInExclusiveCreateMode

      protected boolean isInExclusiveCreateMode()
    • mergeGivenTypes

      protected Set<ObjectType> mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded)
    • getTypeService

      protected TypeService getTypeService()
    • getUIConfigurationService

      protected UIConfigurationService getUIConfigurationService()
    • isDisplaySubtypes

      public boolean isDisplaySubtypes()
      Returns:
      the displaySubtypes
    • isValid

      protected boolean isValid(TemplateListEntry templateEntry)
    • createWizardContext

      protected MutableWizardContext createWizardContext()
    • 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 List<String> getAllowCreateTypes()
      Returns:
      the allowCreateTypes
    • setAllowCreateTypes

      public void setAllowCreateTypes(List<String> allowCreateTypes)
      Parameters:
      allowCreateTypes - the allowCreateTypes to set
    • getExcludeCreateTypes

      public List<String> getExcludeCreateTypes()
      Returns:
      the excludeCreateTypes
    • setExcludeCreateTypes

      public void setExcludeCreateTypes(List<String> excludeCreateTypes)
      Parameters:
      excludeCreateTypes - the excludeCreateTypes to set
    • getCreateItemWizardRegistry

      protected CreateItemWizardRegistry getCreateItemWizardRegistry()