public class MandatoryPage extends AbstractCmsWizardPage
ObjectTemplate. This is used by cockpit wizards GenericItemWizard
Note: GenericItemWizard,
WizardConfiguration| Modifier and Type | Field and Description |
|---|---|
protected static String |
COCKPIT_ID_CREATE_PAGE_PREFIX |
protected static String |
WIZARD_CONFIG |
protected static String |
WIZARD_GROUP_CONTAINER |
protected static String |
WIZARD_GROUP_EDITOR_CONTAINER |
protected static String |
WIZARD_GROUP_LABEL |
protected static String |
WIZARD_GROUP_ROW_LABEL |
protected static String |
WIZARD_SECTION |
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_EDITORheight, title, width, wizard| Constructor and Description |
|---|
MandatoryPage(String pageTitle,
CmsWizard wizard) |
| Modifier and Type | Method and Description |
|---|---|
protected AdvancedGroupbox |
createGroup(HtmlBasedComponent parent,
boolean open,
String label)
Creates one single group for particular page
|
protected Component |
createGroupRow(Component parent,
PropertyDescriptor descriptor,
TypedObject currentObject,
String editorCode,
boolean error,
Map<String,String> params)
Creates one single row for group on that page.
|
protected void |
createGroupSectionContent(HtmlBasedComponent group,
Collection<String> allreadyDisplayedProperties,
Collection<String> displaydDescriptors,
WizardConfiguration wizardConfiguration)
Creates a group content accordingly to given parameters
|
Component |
createRepresentationItself() |
protected List<String> |
extractPropertyQualifiers(List<PropertyDescriptor> propertyDescriptors) |
List<String> |
getDisplayedAttributes() |
Map<String,? extends Object> |
getParameters() |
protected UIConfigurationService |
getUIConfigurationService() |
Object |
getValue() |
protected WizardConfiguration |
getWizardConfiguration() |
boolean |
isAddSelectedElementsAtTop() |
protected void |
loadInitConfigValues(PropertyDescriptor descriptor,
WizardConfiguration wizardConfig)
Method loads initial values that can be defined within
WizardConfiguration
|
protected Radiogroup |
positioningOptions() |
protected void |
render(HtmlBasedComponent parent,
Collection<String> requiredDescriptors)
Main method that is used for render whole page's content (i.e.
|
void |
setParameters(Map<String,? extends Object> parameters) |
void |
setValue(Object value) |
clearPageComponents, getErrorContainer, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributesgetAttributes, getComponentURI, getController, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizardclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getComponentURI, getController, getHeight, getId, getTitle, getWidth, initViewprotected static final String WIZARD_CONFIG
protected static final String WIZARD_GROUP_LABEL
protected static final String WIZARD_GROUP_CONTAINER
protected static final String WIZARD_GROUP_EDITOR_CONTAINER
protected static final String WIZARD_GROUP_ROW_LABEL
protected static final String WIZARD_SECTION
protected static final String COCKPIT_ID_CREATE_PAGE_PREFIX
protected final Component createGroupRow(Component parent,
PropertyDescriptor descriptor,
TypedObject currentObject,
String editorCode,
boolean error,
Map<String,String> params)
parent - parent component HtmlBasedComponentdescriptor - property descriptor for which editor should be displayedcurrentObject - current object TypedObjecteditorCode - editor code that should be used for displaying given propertieserror - is this property causing errorparams - configuration parametersprotected void createGroupSectionContent(HtmlBasedComponent group,
Collection<String> allreadyDisplayedProperties,
Collection<String> displaydDescriptors,
WizardConfiguration wizardConfiguration)
group - parent @{link HtmlBasedComponentallreadyDisplayedProperties - properties already displayeddisplaydDescriptors - properties that should be displayed for that groupwizardConfiguration - wizard configurationpublic Component createRepresentationItself()
createRepresentationItself in interface CmsWizardPagecreateRepresentationItself in class AbstractCmsWizardPageprotected AdvancedGroupbox createGroup(HtmlBasedComponent parent, boolean open, String label)
parent - component HtmlBasedComponentopen - flag that determines whether groups should be openedlabel - group labelprotected Radiogroup positioningOptions()
protected List<String> extractPropertyQualifiers(List<PropertyDescriptor> propertyDescriptors)
public List<String> getDisplayedAttributes()
getDisplayedAttributes in class AbstractCmsWizardPageprotected UIConfigurationService getUIConfigurationService()
public Object getValue()
protected WizardConfiguration getWizardConfiguration()
protected void loadInitConfigValues(PropertyDescriptor descriptor, WizardConfiguration wizardConfig)
WizardConfiguration
descriptor - property descriptorwizardConfig - current wizard configurationprotected void render(HtmlBasedComponent parent,
Collection<String> requiredDescriptors)
WizardConfiguration)
parent - component HtmlBasedComponentrequiredDescriptors - descriptors that are required in order to instantiate a given @{link ObjectTemplatepublic boolean isAddSelectedElementsAtTop()
public void setValue(Object value)
Copyright © 2017 SAP SE. All Rights Reserved.