public class LiveEditView<T extends LiveEditPopupEditDialog>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LiveEditView.DesktopRefreshContentHandler |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CALLBACK_EVENT |
protected static java.lang.String |
LIVE_EDIT_BROWSER_SCLASS |
protected static java.lang.String |
ON_INIT_EVENT |
protected static java.lang.String |
ON_INVALIDATE_LATER_EVENT |
static java.lang.String |
URL_CHANGE_EVENT |
| Constructor and Description |
|---|
LiveEditView(DefaultLiveEditViewModel model) |
LiveEditView(DefaultLiveEditViewModel model,
Div welcomePanel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventListeners()
Adds all required events handling i.e:
user special events
init events
invalidate event
|
protected java.lang.String |
extractRequestPath(java.lang.String longUrl)
Extracts request path from long URL (request path with query search)
|
Iframe |
getContentFrame()
Returns content frame component - for access it from outside
|
protected EventListener |
getIniEventListener()
Returns event listener for handling init events
Note:
This is used for proper initialize live edit view - within preview mode we to update view in order to make content visible. |
protected EventListener |
getInvalidateListener()
Returns event listener for handling invalidate events
Note:
This is used for invalidate frame content |
DefaultLiveEditViewModel |
getModel() |
LiveEditPopupEditDialog |
getPopupEditorDialog() |
protected EventListener |
getUserEventListener()
Returns event listener for handling user events
Note:
This is used for handling user events such like: displaying popup dialog with proper content editors reacts when user change URL within content frame (this is used for keeping cmscockpit up-to-date with current URL from content frame) |
HtmlBasedComponent |
getViewComponent()
Returns the ZK component of the site preview.
|
protected Div |
getWelcomePanel() |
void |
initialize()
Initialize live edit view (i.e.
|
protected Iframe |
initializeContentFrame()
Initialize live edit content iframe
|
protected Div |
initializeViewComponent()
Initialize the main view component for the live edit
|
protected HtmlBasedComponent |
loadWelcomePanel(HtmlBasedComponent parent)
Loads welcome panel if any
|
protected void |
refreshContentFrame() |
protected void |
refreshWelcomePanel()
Refreshes welcome panel when it is available
Note:
This is disjoint with content frame i.e. |
void |
setPopupEditorDialog(T popupEditorDialog) |
void |
setWelcomePanel(Div welcomePanel) |
void |
update()
Performs general update.
|
void |
updateItem(TypedObject item,
java.util.Set<PropertyDescriptor> modifiedProperties,
java.lang.Object reason)
Performs update according to given item modifications
|
protected static final java.lang.String ON_INIT_EVENT
public static final java.lang.String CALLBACK_EVENT
public static final java.lang.String URL_CHANGE_EVENT
protected static final java.lang.String LIVE_EDIT_BROWSER_SCLASS
protected static final java.lang.String ON_INVALIDATE_LATER_EVENT
public LiveEditView(DefaultLiveEditViewModel model)
public LiveEditView(DefaultLiveEditViewModel model, Div welcomePanel)
public void initialize()
protected Div initializeViewComponent()
protected Iframe initializeContentFrame()
protected void addEventListeners()
public HtmlBasedComponent getViewComponent()
public Iframe getContentFrame()
public DefaultLiveEditViewModel getModel()
public void setWelcomePanel(Div welcomePanel)
protected EventListener getIniEventListener()
LiveEditViewModel.getCurrentPreviewData() return
nullEventListenerON_INIT_EVENTprotected EventListener getInvalidateListener()
EventListenerON_INVALIDATE_LATER_EVENTprotected EventListener getUserEventListener()
EventListenerprotected void refreshWelcomePanel()
protected void refreshContentFrame()
public void update()
public void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties, java.lang.Object reason)
item - modified itemmodifiedProperties - modified properties of the itemprotected java.lang.String extractRequestPath(java.lang.String longUrl)
longUrl - request path with query searchprotected HtmlBasedComponent loadWelcomePanel(HtmlBasedComponent parent)
parent - parent componentprotected Div getWelcomePanel()
public LiveEditPopupEditDialog getPopupEditorDialog()
public void setPopupEditorDialog(T popupEditorDialog)
Copyright © 2018 SAP SE. All Rights Reserved.