public class LiveEditPopupEditDialog<T extends LiveEditView>
extends Window
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CONTENT_EDITOR_CONF |
protected static java.lang.String |
LIVE_POPUP_CONTAINER |
protected static java.lang.String |
LIVE_POPUP_MAIN_PANEL |
| Constructor and Description |
|---|
LiveEditPopupEditDialog(java.util.Map<java.lang.String,java.lang.Object> currentAttributes,
java.util.Collection<CatalogVersionModel> catalogVersions,
T liveEditView) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearValueContainer()
Clears current value container
|
protected CMSComponentService |
getComponentService()
Retrieves a component service
|
protected ContentEditorConfiguration |
getContentEditorConfiguration(ObjectTemplate objectTemplate)
Retrieves a content editor configuration
|
protected java.lang.String |
getParsedVelocityTemplateString(java.lang.String velocityTemplate,
TypedObject rootItem)
Computes a velocity template
|
protected UIConfigurationService |
getUIConfigurationService()
Retrieves a configuration service
|
protected ObjectValueContainer |
getValueContainer(TypedObject rootItem)
Gets a proper value container for passed element
|
protected void |
initialize()
Creates a proper popup dialog and injects necessary editors
Note: Here also we inject appropriate editors for current CMS Component
|
protected boolean |
isReloadNeeded(ObjectTemplate objectTemplate)
Checks whether we have to reload a editor
|
protected void |
renderEditor(HtmlBasedComponent parent,
TypedObject rootItem)
Renders editor for passed element
|
void |
update()
General update method
|
protected static final java.lang.String CONTENT_EDITOR_CONF
protected static final java.lang.String LIVE_POPUP_MAIN_PANEL
protected static final java.lang.String LIVE_POPUP_CONTAINER
public LiveEditPopupEditDialog(java.util.Map<java.lang.String,java.lang.Object> currentAttributes,
java.util.Collection<CatalogVersionModel> catalogVersions,
T liveEditView)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void initialize()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void update()
protected void renderEditor(HtmlBasedComponent parent,
TypedObject rootItem)
parent - parent componentrootItem - passed elementprotected boolean isReloadNeeded(ObjectTemplate objectTemplate)
objectTemplate - protected java.lang.String getParsedVelocityTemplateString(java.lang.String velocityTemplate,
TypedObject rootItem)
velocityTemplate - - raw velocity templaterootItem - - passed element
Note:protected ObjectValueContainer getValueContainer(TypedObject rootItem)
rootItem - passed elementprotected void clearValueContainer()
protected ContentEditorConfiguration getContentEditorConfiguration(ObjectTemplate objectTemplate)
objectTemplate - current object templateprotected UIConfigurationService getUIConfigurationService()
protected CMSComponentService getComponentService()
Copyright © 2018 SAP SE. All Rights Reserved.