Class EditorArea
- java.lang.Object
-
- de.hybris.platform.cockpit.session.impl.EditorArea
-
- All Implemented Interfaces:
CockpitEventAcceptor
,CockpitEventProducer
,FocusablePerspectiveArea
,UICockpitArea
,UIComponent
,UIEditorArea
,UISessionListener
- Direct Known Subclasses:
AdmincockpitEditorArea
,ImportCockpitEditorArea
public class EditorArea extends java.lang.Object implements UIEditorArea
Manages editor area content and events. Holds currently shown object.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EDITOR_AREA_CONFIG_CODE
-
Constructor Summary
Constructors Constructor Description EditorArea()
-
Method Summary
-
-
-
Field Detail
-
EDITOR_AREA_CONFIG_CODE
public static final java.lang.String EDITOR_AREA_CONFIG_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValidationInfo
public java.util.Set<CockpitValidationDescriptor> getValidationInfo()
-
setValidationInfo
public void setValidationInfo(java.util.Set<CockpitValidationDescriptor> validationInfo)
-
getViewURI
public java.lang.String getViewURI()
- Specified by:
getViewURI
in interfaceUIComponent
-
setViewURI
public void setViewURI(java.lang.String viewURI)
-
afterLogin
public void afterLogin(UserModel user)
- Specified by:
afterLogin
in interfaceUISessionListener
-
beforeLogout
public void beforeLogout(UserModel user)
- Specified by:
beforeLogout
in interfaceUISessionListener
-
globalDataLanguageChanged
public void globalDataLanguageChanged()
- Specified by:
globalDataLanguageChanged
in interfaceUISessionListener
-
perspectiveChanged
public void perspectiveChanged(UICockpitPerspective previous, UICockpitPerspective newOne)
- Specified by:
perspectiveChanged
in interfaceUISessionListener
-
getPerspective
public UICockpitPerspective getPerspective()
- Specified by:
getPerspective
in interfaceUICockpitArea
-
setPerspective
public void setPerspective(UICockpitPerspective perspective)
- Specified by:
setPerspective
in interfaceUICockpitArea
-
getValueHandlerRegistry
public ObjectValueHandlerRegistry getValueHandlerRegistry()
-
setValueHandlerRegistry
public void setValueHandlerRegistry(ObjectValueHandlerRegistry valueHandlerRegistry)
-
getSystemService
public SystemService getSystemService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
setSystemService
public void setSystemService(SystemService systemService)
-
getTypeService
public TypeService getTypeService()
-
setCockpitTypeService
public void setCockpitTypeService(TypeService typeService)
-
getUndoManager
public UndoManager getUndoManager()
-
setUndoManager
public void setUndoManager(UndoManager undoManager)
-
setValueService
public void setValueService(ValueService valueService)
-
getValueService
protected ValueService getValueService()
-
fireCurrentObjectUpdated
protected void fireCurrentObjectUpdated(TypedObject item) throws java.lang.RuntimeException
- Throws:
java.lang.RuntimeException
-
fireCurrentObjectChanged
protected void fireCurrentObjectChanged(TypedObject prev, TypedObject newOne) throws java.lang.RuntimeException
- Throws:
java.lang.RuntimeException
-
fireValuesStored
protected void fireValuesStored(ObjectValueContainer cont)
-
fireValuesUpdated
protected void fireValuesUpdated(ObjectValueContainer cont)
-
fireValueChanged
protected void fireValueChanged(ObjectValueContainer cont, PropertyDescriptor propertyDescriptor)
-
addEditorAreaListener
public void addEditorAreaListener(EditorAreaListener editorAreaListener)
- Specified by:
addEditorAreaListener
in interfaceUIEditorArea
-
removeEditorAreaListener
public void removeEditorAreaListener(EditorAreaListener editorAreaListener)
- Specified by:
removeEditorAreaListener
in interfaceUIEditorArea
-
getCurrentObject
public TypedObject getCurrentObject()
- Specified by:
getCurrentObject
in interfaceUIEditorArea
-
getTypeConfiguration
public EditorConfiguration getTypeConfiguration()
- Specified by:
getTypeConfiguration
in interfaceUIEditorArea
-
getLoadPropertyDescriptors
protected java.util.Set<PropertyDescriptor> getLoadPropertyDescriptors()
-
getLoadLanguages
protected java.util.Set<java.lang.String> getLoadLanguages()
-
setCurrentObject
public void setCurrentObject(TypedObject object)
- Specified by:
setCurrentObject
in interfaceUIEditorArea
-
setCurrentObjectType
public void setCurrentObjectType(ObjectType currentObjectType)
- Specified by:
setCurrentObjectType
in interfaceUIEditorArea
-
getCurrentObjectType
public ObjectType getCurrentObjectType()
- Specified by:
getCurrentObjectType
in interfaceUIEditorArea
-
updateAllValues
public void updateAllValues()
- Specified by:
updateAllValues
in interfaceUIEditorArea
-
updateValues
public void updateValues(java.util.Set<PropertyDescriptor> properties)
- Specified by:
updateValues
in interfaceUIEditorArea
-
getCurrentObjectValues
public ObjectValueContainer getCurrentObjectValues()
- Specified by:
getCurrentObjectValues
in interfaceUIEditorArea
-
setModelSingleValue
public void setModelSingleValue(ItemModel model, java.lang.String qualifier, java.lang.Object value) throws AttributeNotSupportedException
- Throws:
AttributeNotSupportedException
-
setModelLocalizedValue
public void setModelLocalizedValue(ItemModel model, java.lang.String qualifier, java.lang.String languageIso, java.lang.Object value) throws AttributeNotSupportedException
- Throws:
AttributeNotSupportedException
-
doSave
public void doSave()
- Specified by:
doSave
in interfaceUIEditorArea
-
restatusIgnoredDescriptors
public void restatusIgnoredDescriptors(ObjectValueContainer valueContainer, java.util.Set<CockpitValidationDescriptor> validationInfo)
-
createModelFromContainer
public void createModelFromContainer()
-
validateForm
public void validateForm(java.util.Set<CockpitValidationDescriptor> validationInfo, TypedObject currentObject)
Validates form.- Parameters:
validationInfo
- the validation infocurrentObject
- the current object
-
addMissingMessage
protected void addMissingMessage(java.util.Set<PropertyDescriptor> relatedProps)
-
addMessage
protected void addMessage(SectionPanelModel panelModel, java.lang.Exception exc)
-
isFocused
public boolean isFocused()
- Specified by:
isFocused
in interfaceFocusablePerspectiveArea
-
setFocus
public void setFocus(boolean focus)
- Specified by:
setFocus
in interfaceFocusablePerspectiveArea
-
getManagingPerspective
public UICockpitPerspective getManagingPerspective()
- Specified by:
getManagingPerspective
in interfaceFocusablePerspectiveArea
- Specified by:
getManagingPerspective
in interfaceUIEditorArea
-
setManagingPerspective
public void setManagingPerspective(UICockpitPerspective managingPerspective)
- Specified by:
setManagingPerspective
in interfaceUIEditorArea
-
initialize
public void initialize(java.util.Map<java.lang.String,java.lang.Object> params)
- Specified by:
initialize
in interfaceUICockpitArea
- Specified by:
initialize
in interfaceUIComponent
-
update
public void update()
- Specified by:
update
in interfaceUICockpitArea
-
fireNextItem
public void fireNextItem(TypedObject currentObj)
-
firePreviousItem
public void firePreviousItem(TypedObject currentObj)
-
fireBrowseItem
public void fireBrowseItem(TypedObject currentObj)
-
doNextItem
public void doNextItem()
- Specified by:
doNextItem
in interfaceUIEditorArea
-
doPreviousItem
public void doPreviousItem()
- Specified by:
doPreviousItem
in interfaceUIEditorArea
-
doBrowseItem
public void doBrowseItem()
- Specified by:
doBrowseItem
in interfaceUIEditorArea
-
doOnChange
public void doOnChange(PropertyDescriptor propertyDescriptor)
- Specified by:
doOnChange
in interfaceUIEditorArea
-
reset
public void reset()
- Specified by:
reset
in interfaceUIEditorArea
-
getConfiguration
public EditorConfiguration getConfiguration(java.lang.String typecode)
-
getUIConfigurationService
protected UIConfigurationService getUIConfigurationService()
-
getAllLabels
protected java.util.Map<LanguageModel,java.lang.String> getAllLabels(java.lang.String labelLocKey)
-
getEditorAreaController
public EditorAreaController getEditorAreaController()
- Specified by:
getEditorAreaController
in interfaceUIEditorArea
-
setEditorAreaController
public void setEditorAreaController(EditorAreaController editorAreaController)
-
addCockpitEventAcceptor
public void addCockpitEventAcceptor(CockpitEventAcceptor acceptor)
- Specified by:
addCockpitEventAcceptor
in interfaceCockpitEventProducer
-
removeCockpitEventAcceptor
public void removeCockpitEventAcceptor(CockpitEventAcceptor acceptor)
- Specified by:
removeCockpitEventAcceptor
in interfaceCockpitEventProducer
-
onCockpitEvent
public void onCockpitEvent(CockpitEvent event)
- Specified by:
onCockpitEvent
in interfaceCockpitEventAcceptor
-
revalidateForm
public void revalidateForm()
-
resetStack
public void resetStack()
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interfaceUIComponent
-
getWidth
public java.lang.String getWidth()
- Specified by:
getWidth
in interfaceUIEditorArea
-
setWidth
public void setWidth(java.lang.String width)
- Specified by:
setWidth
in interfaceUIEditorArea
-
getConstraintsPk
public java.util.List<java.lang.String> getConstraintsPk()
- Returns:
- the constraintsPk
-
addConstraintsPk
public void addConstraintsPk(java.lang.String constraintsPk)
-
getsessionService
public SessionService getsessionService()
-
getItemStackSize
public int getItemStackSize()
-
-