public class GenericItemMandatoryPage extends AbstractGenericItemPage
ObjectTemplate. This is used by cockpit wizards GenericItemWizard
Note: GenericItemWizard,
WizardConfiguration| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
WIZARD_CONFIG |
protected static java.lang.String |
WIZARD_GROUP_CONTAINER |
protected static java.lang.String |
WIZARD_GROUP_EDITOR_CONTAINER |
protected static java.lang.String |
WIZARD_GROUP_LABEL |
protected static java.lang.String |
WIZARD_GROUP_ROW_LABEL |
protected static java.lang.String |
WIZARD_SECTION |
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_SCLASSheight, title, width, wizard| Constructor and Description |
|---|
GenericItemMandatoryPage() |
GenericItemMandatoryPage(java.lang.String pageTitle) |
GenericItemMandatoryPage(java.lang.String pageTitle,
GenericItemWizard wizard) |
| Modifier and Type | Method and Description |
|---|---|
protected AdvancedGroupbox |
createGroup(HtmlBasedComponent parent,
boolean open,
java.lang.String label)
Creates one single group for particular page
|
protected Component |
createGroupRow(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 void |
createGroupSectionContent(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
|
Component |
createRepresentationItself()
This is an general method responsible for creating UI representation of given page
Note:
Here we should create graphical representation of particular page |
protected java.util.List<java.lang.String> |
extractPropertyQualifiers(java.util.List<PropertyDescriptor> propertyDescriptors) |
WizardPageController |
getController() |
DefaultGenericItemMandatoryPageController |
getDefaultController() |
java.util.List<java.lang.String> |
getDisplayedAttributes() |
java.util.Map<java.lang.String,? extends java.lang.Object> |
getParameters() |
protected UIConfigurationService |
getUIConfigurationService() |
java.lang.Object |
getValue() |
protected WizardConfiguration |
getWizardConfiguration() |
protected void |
loadInitConfigValues(PropertyDescriptor descriptor,
WizardConfiguration wizardConfig)
Method loads initial values that can be defined within
WizardConfiguration
|
protected void |
render(HtmlBasedComponent parent,
java.util.Collection<java.lang.String> requiredDescriptors)
Main method that is used for render whole page's content (i.e.
|
void |
setDefaultController(DefaultGenericItemMandatoryPageController defaultController) |
void |
setParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters) |
void |
setValue(java.lang.Object value) |
clearPageComponents, getErrorContainer, getNextPageWizardId, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributes, setNextPageWizardIdgetAttributes, getComponentURI, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizardprotected static final java.lang.String WIZARD_CONFIG
protected static final java.lang.String WIZARD_GROUP_LABEL
protected static final java.lang.String WIZARD_GROUP_CONTAINER
protected static final java.lang.String WIZARD_GROUP_EDITOR_CONTAINER
protected static final java.lang.String WIZARD_GROUP_ROW_LABEL
protected static final java.lang.String WIZARD_SECTION
public GenericItemMandatoryPage()
public GenericItemMandatoryPage(java.lang.String pageTitle)
public GenericItemMandatoryPage(java.lang.String pageTitle,
GenericItemWizard wizard)
public DefaultGenericItemMandatoryPageController getDefaultController()
public void setDefaultController(DefaultGenericItemMandatoryPageController defaultController)
public WizardPageController getController()
getController in interface WizardPagegetController in class DefaultPageprotected final Component createGroupRow(Component parent,
PropertyDescriptor descriptor,
TypedObject currentObject,
java.lang.String editorCode,
int errorLevel,
java.util.Map<java.lang.String,java.lang.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 propertieserrorLevel - is this property causing errorparams - configuration parametersprotected void createGroupSectionContent(HtmlBasedComponent group,
java.util.Collection<java.lang.String> allreadyDisplayedProperties,
java.util.Collection<java.lang.String> displaydDescriptors,
WizardConfiguration wizardConfiguration)
group - parent @{link HtmlBasedComponentallreadyDisplayedProperties - properties already displayeddisplaydDescriptors - properties that should be displayed for that groupwizardConfiguration - wizard configurationpublic Component createRepresentationItself()
AbstractGenericItemPagecreateRepresentationItself in interface GenericItemWizardPagecreateRepresentationItself in class AbstractGenericItemPageprotected AdvancedGroupbox createGroup(HtmlBasedComponent parent, boolean open, java.lang.String label)
parent - component HtmlBasedComponentopen - flag that determines whether groups should be openedlabel - group labelprotected java.util.List<java.lang.String> extractPropertyQualifiers(java.util.List<PropertyDescriptor> propertyDescriptors)
public java.util.List<java.lang.String> getDisplayedAttributes()
getDisplayedAttributes in class AbstractGenericItemPagepublic java.util.Map<java.lang.String,? extends java.lang.Object> getParameters()
protected UIConfigurationService getUIConfigurationService()
public java.lang.Object getValue()
protected WizardConfiguration getWizardConfiguration()
protected void loadInitConfigValues(PropertyDescriptor descriptor, WizardConfiguration wizardConfig)
WizardConfiguration
descriptor - property descriptorwizardConfig - current wizard configurationprotected void render(HtmlBasedComponent parent,
java.util.Collection<java.lang.String> requiredDescriptors)
WizardConfiguration)
parent - component HtmlBasedComponentrequiredDescriptors - descriptors that are required in order to instantiate a given @{link ObjectTemplatepublic void setParameters(java.util.Map<java.lang.String,? extends java.lang.Object> parameters)
public void setValue(java.lang.Object value)
Copyright © 2018 SAP SE. All Rights Reserved.