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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectTypestatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected ObjectTypeprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields 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_SCLASSFields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
height, title, width, wizard -
Constructor Summary
ConstructorsConstructorDescriptionGenericTypeSelectorPage(CreateContext createContext) GenericTypeSelectorPage(String pageTitle, Wizard wizard, CreateContext createContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.ComponentThis is an general method responsible for creating UI representation of given pageprotected MutableWizardContextprotected List<TemplateListEntry>filterAllowedTypeEntries(List<TemplateListEntry> entries) protected List<ObjectType>getAllSubTypes(String typeCode) Recursively gets subtypes of typeprotected CreateItemWizardRegistryprotected StringgetIcon(TemplateListEntry data) Gets the url to an icon resource for the given type.protected List<TemplateListEntry>protected TypeServiceprotected UIConfigurationServicebooleanprotected booleanprotected booleanisValid(TemplateListEntry templateEntry) protected Set<ObjectType>mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded) voidsetAllowCreateTypes(List<String> allowCreateTypes) voidsetCreateContext(CreateContext createContext) voidsetDisplaySubtypes(boolean displaySubtypes) voidsetExcludeCreateTypes(List<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, setNextPageWizardIdMethods 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 Details
-
SCLASS_ELEMENT_BOX
- See Also:
-
SCLASS_ELEMENT_IMAGE
- See Also:
-
SCLASS_ELEMENT_NAME
- See Also:
-
SCLASS_ELEMENT_DESC
- See Also:
-
PREDEFINED_VALUES
- See Also:
-
PARENT_WIZARD_CREATE_CONTEXT
- See Also:
-
COCKPIT_ID_CREATEWEBSITE_WEBSITETYPE
- See Also:
-
TYPE_SELECTOR_CONTAINER_PAGE_SCLASS
- See Also:
-
TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS
- See Also:
-
TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS
- See Also:
-
DEFAULT_ELEMENT_IMAGE
- See Also:
-
chosenType
-
rootSelectorType
-
-
Constructor Details
-
GenericTypeSelectorPage
public GenericTypeSelectorPage() -
GenericTypeSelectorPage
-
GenericTypeSelectorPage
-
-
Method Details
-
setCreateContext
-
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
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
Recursively gets subtypes of type -
getChosenType
- Returns:
- the chosenType
-
getRootSelectorType
- Returns:
- the rootSelectorType
-
filterAllowedTypeEntries
-
getTemplateListEntry
-
isInExclusiveCreateMode
protected boolean isInExclusiveCreateMode() -
mergeGivenTypes
protected Set<ObjectType> mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded) -
getTypeService
-
getUIConfigurationService
-
isDisplaySubtypes
public boolean isDisplaySubtypes()- Returns:
- the displaySubtypes
-
isValid
-
createWizardContext
-
setDisplaySubtypes
public void setDisplaySubtypes(boolean displaySubtypes) - Parameters:
displaySubtypes- the displaySubtypes to set
-
setRootSelectorType
- Parameters:
rootSelectorType- the rootSelectorType to set
-
getAllowCreateTypes
- Returns:
- the allowCreateTypes
-
setAllowCreateTypes
- Parameters:
allowCreateTypes- the allowCreateTypes to set
-
getExcludeCreateTypes
- Returns:
- the excludeCreateTypes
-
setExcludeCreateTypes
- Parameters:
excludeCreateTypes- the excludeCreateTypes to set
-
getCreateItemWizardRegistry
-