Class GenericItemMandatoryPage
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.impl.DefaultPage
-
- de.hybris.platform.cockpit.wizards.generic.AbstractGenericItemPage
-
- de.hybris.platform.cockpit.wizards.generic.GenericItemMandatoryPage
-
- All Implemented Interfaces:
GenericItemWizardPage,WizardPage
- Direct Known Subclasses:
ConstraintsMandatoryPage
public class GenericItemMandatoryPage extends AbstractGenericItemPage
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.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.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 GenericItemMandatoryPage()GenericItemMandatoryPage(java.lang.String pageTitle)GenericItemMandatoryPage(java.lang.String pageTitle, GenericItemWizard 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, int errorLevel, 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()This is an general method responsible for creating UI representation of given pageprotected java.util.List<java.lang.String>extractPropertyQualifiers(java.util.List<PropertyDescriptor> propertyDescriptors)WizardPageControllergetController()DefaultGenericItemMandatoryPageControllergetDefaultController()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()protected voidloadInitConfigValues(PropertyDescriptor descriptor, WizardConfiguration wizardConfig)Method loads initial values that can be defined withinWizardConfigurationprotected 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.voidsetDefaultController(DefaultGenericItemMandatoryPageController defaultController)voidsetParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)voidsetValue(java.lang.Object value)-
Methods inherited from class de.hybris.platform.cockpit.wizards.generic.AbstractGenericItemPage
clearPageComponents, 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
-
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
-
-
Constructor Detail
-
GenericItemMandatoryPage
public GenericItemMandatoryPage()
-
GenericItemMandatoryPage
public GenericItemMandatoryPage(java.lang.String pageTitle)
-
GenericItemMandatoryPage
public GenericItemMandatoryPage(java.lang.String pageTitle, GenericItemWizard wizard)
-
-
Method Detail
-
getDefaultController
public DefaultGenericItemMandatoryPageController getDefaultController()
-
setDefaultController
public void setDefaultController(DefaultGenericItemMandatoryPageController defaultController)
-
getController
public WizardPageController getController()
- Specified by:
getControllerin interfaceWizardPage- Overrides:
getControllerin classDefaultPage
-
createGroupRow
protected final org.zkoss.zk.ui.Component createGroupRow(org.zkoss.zk.ui.Component parent, PropertyDescriptor descriptor, TypedObject currentObject, java.lang.String editorCode, int errorLevel, 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 propertieserrorLevel- 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()
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
-
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
-
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 classAbstractGenericItemPage- 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
-
setParameters
public void setParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
-
setValue
public void setValue(java.lang.Object value)
-
-