public class GenericItemMandatoryPage extends AbstractGenericItemPage
ObjectTemplate. This is used by cockpit wizards GenericItemWizard
Note: GenericItemWizard,
WizardConfiguration| Modifier and Type | Field and Description |
|---|---|
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 |
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(String pageTitle) |
GenericItemMandatoryPage(String pageTitle,
GenericItemWizard 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,
int errorLevel,
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()
This is an general method responsible for creating UI representation of given page
Note:
Here we should create graphical representation of particular page |
protected List<String> |
extractPropertyQualifiers(List<PropertyDescriptor> propertyDescriptors) |
WizardPageController |
getController() |
DefaultGenericItemMandatoryPageController |
getDefaultController() |
List<String> |
getDisplayedAttributes() |
Map<String,? extends Object> |
getParameters() |
protected UIConfigurationService |
getUIConfigurationService() |
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,
Collection<String> requiredDescriptors)
Main method that is used for render whole page's content (i.e.
|
void |
setDefaultController(DefaultGenericItemMandatoryPageController defaultController) |
void |
setParameters(Map<String,? extends Object> parameters) |
void |
setValue(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 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
public GenericItemMandatoryPage()
public GenericItemMandatoryPage(String pageTitle)
public GenericItemMandatoryPage(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,
String editorCode,
int errorLevel,
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 propertieserrorLevel - 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()
AbstractGenericItemPagecreateRepresentationItself in interface GenericItemWizardPagecreateRepresentationItself in class AbstractGenericItemPageprotected AdvancedGroupbox createGroup(HtmlBasedComponent parent, boolean open, String label)
parent - component HtmlBasedComponentopen - flag that determines whether groups should be openedlabel - group labelprotected List<String> extractPropertyQualifiers(List<PropertyDescriptor> propertyDescriptors)
public List<String> getDisplayedAttributes()
getDisplayedAttributes in class AbstractGenericItemPageprotected 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 void setValue(Object value)
Copyright © 2017 SAP SE. All Rights Reserved.