Class NewItemSection
- java.lang.Object
-
- de.hybris.platform.cockpit.components.sectionpanel.DefaultSection
-
- de.hybris.platform.cockpit.session.impl.EditorSection
-
- de.hybris.platform.cockpit.session.impl.CustomEditorSection
-
- de.hybris.platform.cockpit.session.impl.NewItemSection
-
- All Implemented Interfaces:
EditableSection,Section
public class NewItemSection extends CustomEditorSection
-
-
Field Summary
Fields Modifier and Type Field Description protected UIEditorAreaeditorAreaprotected EditorAreaControllereditorAreaController
-
Constructor Summary
Constructors Constructor Description NewItemSection(EditorAreaController editorAreaController, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMessage(SectionPanel panel, java.lang.Exception exc)protected voidcreateNewItem(SectionPanel panel)SectionRenderergetCustomRenderer()protected UIEditorAreagetEditorArea()protected ModelServicegetModelService()protected NewItemServicegetNewItemService()protected ValueServicegetValueService()protected voidvalidateForm(SectionPanelModel panelModel, java.util.Set<CockpitValidationDescriptor> validationInfo, TypedObject currentObject)Validates form and adds all required messages to the UI.-
Methods inherited from class de.hybris.platform.cockpit.session.impl.CustomEditorSection
getAttribute, setAttribute
-
Methods inherited from class de.hybris.platform.cockpit.session.impl.EditorSection
getSectionConfiguration, getValidationService
-
Methods inherited from class de.hybris.platform.cockpit.components.sectionpanel.DefaultSection
getLabel, getLocalizedLabel, isInEditMode, isInitialOpen, isModified, isOpen, isTabbed, isVisible, setInEditMode, setInitialOpen, setLabel, setLocalizedLabel, setModified, setOpen, setTabbed, setVisible
-
-
-
-
Field Detail
-
editorArea
protected final UIEditorArea editorArea
-
editorAreaController
protected final EditorAreaController editorAreaController
-
-
Constructor Detail
-
NewItemSection
public NewItemSection(EditorAreaController editorAreaController, java.lang.String label)
-
-
Method Detail
-
getCustomRenderer
public SectionRenderer getCustomRenderer()
- Overrides:
getCustomRendererin classCustomEditorSection
-
addMessage
protected void addMessage(SectionPanel panel, java.lang.Exception exc)
-
createNewItem
protected void createNewItem(SectionPanel panel)
-
validateForm
protected void validateForm(SectionPanelModel panelModel, java.util.Set<CockpitValidationDescriptor> validationInfo, TypedObject currentObject)
Validates form and adds all required messages to the UI.- Parameters:
panelModel- the panel modelvalidationInfo- the validation infocurrentObject- the current object
-
getEditorArea
protected UIEditorArea getEditorArea()
-
getModelService
protected ModelService getModelService()
-
getValueService
protected ValueService getValueService()
-
getNewItemService
protected NewItemService getNewItemService()
-
-