Class MandatoryPage
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.impl.DefaultPage
-
- de.hybris.platform.cmscockpit.wizard.page.AbstractCmsWizardPage
-
- de.hybris.platform.cmscockpit.wizard.page.MandatoryPage
-
- All Implemented Interfaces:
CmsWizardPage,WizardPage
- Direct Known Subclasses:
CreatePageMandatoryPage
public class MandatoryPage extends AbstractCmsWizardPage
Represents page that displays all necessary editors for required properties in order to create an instance of specifiedObjectTemplate. This is used by cockpit wizardsGenericItemWizardNote:
User can configure properties that should be presented on that page by using wizard configuration- See Also:
GenericItemWizard,WizardConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCOCKPIT_ID_CREATE_PAGE_PREFIXprotected static java.lang.StringWIZARD_CONFIGprotected static java.lang.StringWIZARD_GROUP_CONTAINERprotected static java.lang.StringWIZARD_GROUP_EDITOR_CONTAINERprotected static java.lang.StringWIZARD_GROUP_LABELprotected static java.lang.StringWIZARD_GROUP_ROW_LABELprotected static java.lang.StringWIZARD_SECTION-
Fields inherited from class de.hybris.platform.cmscockpit.wizard.page.AbstractCmsWizardPage
CMSWIZARD_ERROR_CNT_SCLASS, CMSWIZARD_PAGE_CNT_SCLASS, CMSWIZARD_PAGE_CONTENT_CNT_SCLASS, CONTENT_ELEMENT_CONFIG, ERROR_SCLASS_CMSWIZARD_CNT, ERROR_SCLASS_ELEMENT_BOX_EDITOR, errorContainer, pageContainer, pageContent, SCLASS_ELEMENT_BOX_EDITOR
-
Fields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
height, title, width, wizard
-
-
Constructor Summary
Constructors Constructor Description MandatoryPage(java.lang.String pageTitle, CmsWizard wizard)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdvancedGroupboxcreateGroup(org.zkoss.zk.ui.HtmlBasedComponent parent, boolean open, java.lang.String label)Creates one single group for particular pageprotected org.zkoss.zk.ui.ComponentcreateGroupRow(org.zkoss.zk.ui.Component parent, PropertyDescriptor descriptor, TypedObject currentObject, java.lang.String editorCode, boolean error, java.util.Map<java.lang.String,java.lang.String> params)Creates one single row for group on that page.protected voidcreateGroupSectionContent(org.zkoss.zk.ui.HtmlBasedComponent group, java.util.Collection<java.lang.String> allreadyDisplayedProperties, java.util.Collection<java.lang.String> displaydDescriptors, WizardConfiguration wizardConfiguration)Creates a group content accordingly to given parametersorg.zkoss.zk.ui.ComponentcreateRepresentationItself()protected java.util.List<java.lang.String>extractPropertyQualifiers(java.util.List<PropertyDescriptor> propertyDescriptors)java.util.List<java.lang.String>getDisplayedAttributes()java.util.Map<java.lang.String,? extends java.lang.Object>getParameters()protected UIConfigurationServicegetUIConfigurationService()java.lang.ObjectgetValue()protected WizardConfigurationgetWizardConfiguration()booleanisAddSelectedElementsAtTop()protected voidloadInitConfigValues(PropertyDescriptor descriptor, WizardConfiguration wizardConfig)Method loads initial values that can be defined withinWizardConfigurationprotected org.zkoss.zul.RadiogrouppositioningOptions()protected voidrender(org.zkoss.zk.ui.HtmlBasedComponent parent, java.util.Collection<java.lang.String> requiredDescriptors)Main method that is used for render whole page's content (i.e.voidsetParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)voidsetValue(java.lang.Object value)-
Methods inherited from class de.hybris.platform.cmscockpit.wizard.page.AbstractCmsWizardPage
clearPageComponents, getErrorContainer, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributes
-
Methods inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
getAttributes, getComponentURI, getController, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizard
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.wizards.WizardPage
getAttributes, getComponentURI, getController, getHeight, getId, getTitle, getWidth, initView
-
-
-
-
Field Detail
-
WIZARD_CONFIG
protected static final java.lang.String WIZARD_CONFIG
- See Also:
- Constant Field Values
-
WIZARD_GROUP_LABEL
protected static final java.lang.String WIZARD_GROUP_LABEL
- See Also:
- Constant Field Values
-
WIZARD_GROUP_CONTAINER
protected static final java.lang.String WIZARD_GROUP_CONTAINER
- See Also:
- Constant Field Values
-
WIZARD_GROUP_EDITOR_CONTAINER
protected static final java.lang.String WIZARD_GROUP_EDITOR_CONTAINER
- See Also:
- Constant Field Values
-
WIZARD_GROUP_ROW_LABEL
protected static final java.lang.String WIZARD_GROUP_ROW_LABEL
- See Also:
- Constant Field Values
-
WIZARD_SECTION
protected static final java.lang.String WIZARD_SECTION
- See Also:
- Constant Field Values
-
COCKPIT_ID_CREATE_PAGE_PREFIX
protected static final java.lang.String COCKPIT_ID_CREATE_PAGE_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MandatoryPage
public MandatoryPage(java.lang.String pageTitle, CmsWizard wizard)
-
-
Method Detail
-
createGroupRow
protected final org.zkoss.zk.ui.Component createGroupRow(org.zkoss.zk.ui.Component parent, PropertyDescriptor descriptor, TypedObject currentObject, java.lang.String editorCode, boolean error, java.util.Map<java.lang.String,java.lang.String> params)Creates one single row for group on that page.- Parameters:
parent- parent componentHtmlBasedComponentdescriptor- property descriptor for which editor should be displayedcurrentObject- current objectTypedObjecteditorCode- editor code that should be used for displaying given propertieserror- is this property causing errorparams- configuration parameters- Returns:
- a component that represents row within group
-
createGroupSectionContent
protected void createGroupSectionContent(org.zkoss.zk.ui.HtmlBasedComponent group, java.util.Collection<java.lang.String> allreadyDisplayedProperties, java.util.Collection<java.lang.String> displaydDescriptors, WizardConfiguration wizardConfiguration)Creates a group content accordingly to given parameters- Parameters:
group- parent @{linkHtmlBasedComponentallreadyDisplayedProperties- properties already displayeddisplaydDescriptors- properties that should be displayed for that groupwizardConfiguration- wizard configuration
-
createRepresentationItself
public org.zkoss.zk.ui.Component createRepresentationItself()
- Specified by:
createRepresentationItselfin interfaceCmsWizardPage- Specified by:
createRepresentationItselfin classAbstractCmsWizardPage
-
createGroup
protected AdvancedGroupbox createGroup(org.zkoss.zk.ui.HtmlBasedComponent parent, boolean open, java.lang.String label)
Creates one single group for particular page- Parameters:
parent- componentHtmlBasedComponentopen- flag that determines whether groups should be openedlabel- group label- Returns:
- a component that represents single group
-
positioningOptions
protected org.zkoss.zul.Radiogroup positioningOptions()
-
extractPropertyQualifiers
protected java.util.List<java.lang.String> extractPropertyQualifiers(java.util.List<PropertyDescriptor> propertyDescriptors)
-
getDisplayedAttributes
public java.util.List<java.lang.String> getDisplayedAttributes()
- Overrides:
getDisplayedAttributesin classAbstractCmsWizardPage- Returns:
- the displayedAttributes
-
getParameters
public java.util.Map<java.lang.String,? extends java.lang.Object> getParameters()
-
getUIConfigurationService
protected UIConfigurationService getUIConfigurationService()
-
getValue
public java.lang.Object getValue()
-
getWizardConfiguration
protected WizardConfiguration getWizardConfiguration()
-
loadInitConfigValues
protected void loadInitConfigValues(PropertyDescriptor descriptor, WizardConfiguration wizardConfig)
Method loads initial values that can be defined withinWizardConfiguration- Parameters:
descriptor- property descriptorwizardConfig- current wizard configuration
-
render
protected void render(org.zkoss.zk.ui.HtmlBasedComponent parent, java.util.Collection<java.lang.String> requiredDescriptors)Main method that is used for render whole page's content (i.e. all group and rows configured viaWizardConfiguration)- Parameters:
parent- componentHtmlBasedComponentrequiredDescriptors- descriptors that are required in order to instantiate a given @{linkObjectTemplate
-
isAddSelectedElementsAtTop
public boolean isAddSelectedElementsAtTop()
-
setParameters
public void setParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
setValue
public void setValue(java.lang.Object value)
-
-