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 ObjectTypechosenTypestatic java.lang.StringCOCKPIT_ID_CREATEWEBSITE_WEBSITETYPEstatic java.lang.StringDEFAULT_ELEMENT_IMAGEstatic java.lang.StringPARENT_WIZARD_CREATE_CONTEXTstatic java.lang.StringPREDEFINED_VALUESprotected ObjectTyperootSelectorTypeprotected static java.lang.StringSCLASS_ELEMENT_BOXprotected static java.lang.StringSCLASS_ELEMENT_DESCprotected static java.lang.StringSCLASS_ELEMENT_IMAGEprotected static java.lang.StringSCLASS_ELEMENT_NAMEprotected static java.lang.StringTYPE_SELECTOR_CMSWIZARD_PAGE_SCLASSprotected static java.lang.StringTYPE_SELECTOR_CMSWIZARD_ROW_SCLASSprotected static java.lang.StringTYPE_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.EventListenercreateOnSelectListener(org.zkoss.zul.Listbox listbox)Creates event listener for handling selection events when user selects a type from the list.org.zkoss.zk.ui.ComponentcreateRepresentationItself()This is an general method responsible for creating UI representation of given pageprotected MutableWizardContextcreateWizardContext()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.ObjectgetChosenType()WizardPageControllergetController()protected CreateItemWizardRegistrygetCreateItemWizardRegistry()java.util.List<java.lang.String>getExcludeCreateTypes()protected java.lang.StringgetIcon(TemplateListEntry data)Gets the url to an icon resource for the given type.ObjectTypegetRootSelectorType()protected java.util.List<TemplateListEntry>getTemplateListEntry()protected TypeServicegetTypeService()protected UIConfigurationServicegetUIConfigurationService()booleanisDisplaySubtypes()protected booleanisInExclusiveCreateMode()protected booleanisValid(TemplateListEntry templateEntry)protected java.util.Set<ObjectType>mergeGivenTypes(java.util.Collection<ObjectType> wizardConfigExcludedTypes, java.util.List<java.lang.String> additionalExcluded)voidsetAllowCreateTypes(java.util.List<java.lang.String> allowCreateTypes)voidsetCreateContext(CreateContext createContext)voidsetDisplaySubtypes(boolean displaySubtypes)voidsetExcludeCreateTypes(java.util.List<java.lang.String> excludeCreateTypes)voidsetRootSelectorType(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:
getControllerin interfaceWizardPage- Overrides:
getControllerin classDefaultPage
-
createRepresentationItself
public org.zkoss.zk.ui.Component createRepresentationItself()
Description copied from class:AbstractGenericItemPageThis is an general method responsible for creating UI representation of given page Note:
Here we should create graphical representation of particular page- Specified by:
createRepresentationItselfin interfaceGenericItemWizardPage- Specified by:
createRepresentationItselfin 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()
-
-