Class GenericTypeSelectorPage
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.impl.DefaultPage
-
- de.hybris.platform.cockpit.wizards.generic.AbstractGenericItemPage
-
- de.hybris.platform.cockpit.wizards.generic.GenericTypeSelectorPage
-
- All Implemented Interfaces:
GenericItemWizardPage
,WizardPage
- Direct Known Subclasses:
ConstraintTypeSelectorPage
public class GenericTypeSelectorPage extends AbstractGenericItemPage
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectType
chosenType
static java.lang.String
COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE
static java.lang.String
DEFAULT_ELEMENT_IMAGE
static java.lang.String
PARENT_WIZARD_CREATE_CONTEXT
static java.lang.String
PREDEFINED_VALUES
protected ObjectType
rootSelectorType
protected static java.lang.String
SCLASS_ELEMENT_BOX
protected static java.lang.String
SCLASS_ELEMENT_DESC
protected static java.lang.String
SCLASS_ELEMENT_IMAGE
protected static java.lang.String
SCLASS_ELEMENT_NAME
protected static java.lang.String
TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS
protected static java.lang.String
TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS
protected static java.lang.String
TYPE_SELECTOR_CONTAINER_PAGE_SCLASS
-
Fields inherited from class de.hybris.platform.cockpit.wizards.generic.AbstractGenericItemPage
CONTENT_ELEMENT_CONFIG, ERROR_SCLASS_ELEMENT_BOX_EDITOR, ERROR_SCLASS_WIZARD_CNT, errorContainer, INFO_SCLASS_ELEMENT_BOX_EDITOR, INFO_SCLASS_WIZARD_CNT, pageContainer, pageContent, SCLASS_ELEMENT_BOX_EDITOR, WARNING_SCLASS_ELEMENT_BOX_EDITOR, WARNING_SCLASS_WIZARD_CNT, WIZARD_ERROR_CNT_SCLASS, WIZARD_PAGE_CNT_SCLASS, WIZARD_PAGE_CONTENT_CNT_SCLASS
-
Fields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
height, title, width, wizard
-
-
Constructor Summary
Constructors Constructor Description GenericTypeSelectorPage()
GenericTypeSelectorPage(CreateContext createContext)
GenericTypeSelectorPage(java.lang.String pageTitle, Wizard wizard, CreateContext createContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.org.zkoss.zk.ui.Component
createRepresentationItself()
This is an general method responsible for creating UI representation of given pageprotected MutableWizardContext
createWizardContext()
protected java.util.List<TemplateListEntry>
filterAllowedTypeEntries(java.util.List<TemplateListEntry> entries)
java.util.List<java.lang.String>
getAllowCreateTypes()
protected java.util.List<ObjectType>
getAllSubTypes(java.lang.String typeCode)
Recursively gets subtypes of typejava.lang.Object
getChosenType()
WizardPageController
getController()
protected CreateItemWizardRegistry
getCreateItemWizardRegistry()
java.util.List<java.lang.String>
getExcludeCreateTypes()
protected java.lang.String
getIcon(TemplateListEntry data)
Gets the url to an icon resource for the given type.ObjectType
getRootSelectorType()
protected java.util.List<TemplateListEntry>
getTemplateListEntry()
protected TypeService
getTypeService()
protected UIConfigurationService
getUIConfigurationService()
boolean
isDisplaySubtypes()
protected boolean
isInExclusiveCreateMode()
protected boolean
isValid(TemplateListEntry templateEntry)
protected java.util.Set<ObjectType>
mergeGivenTypes(java.util.Collection<ObjectType> wizardConfigExcludedTypes, java.util.List<java.lang.String> additionalExcluded)
void
setAllowCreateTypes(java.util.List<java.lang.String> allowCreateTypes)
void
setCreateContext(CreateContext createContext)
void
setDisplaySubtypes(boolean displaySubtypes)
void
setExcludeCreateTypes(java.util.List<java.lang.String> excludeCreateTypes)
void
setRootSelectorType(ObjectType rootSelectorType)
-
Methods inherited from class de.hybris.platform.cockpit.wizards.generic.AbstractGenericItemPage
clearPageComponents, getDisplayedAttributes, getErrorContainer, getNextPageWizardId, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributes, setNextPageWizardId
-
Methods inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
getAttributes, getComponentURI, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizard
-
-
-
-
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
-
chosenType
protected ObjectType chosenType
-
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)
-
getController
public WizardPageController getController()
- Specified by:
getController
in interfaceWizardPage
- Overrides:
getController
in classDefaultPage
-
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 interfaceGenericItemWizardPage
- Specified by:
createRepresentationItself
in classAbstractGenericItemPage
-
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
-
filterAllowedTypeEntries
protected java.util.List<TemplateListEntry> filterAllowedTypeEntries(java.util.List<TemplateListEntry> entries)
-
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()
-
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 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
-
getCreateItemWizardRegistry
protected CreateItemWizardRegistry getCreateItemWizardRegistry()
-
-