public class GenericEventsHandler extends Object implements IGenericEventsHandler
handlePreviewEvent(com.sap.portal.admin.editor.IEditorContext, com.sapportals.common.PPLogger) on the editor’s event
handler. Implement this method to handle a preview event.GenericEventsHandler: You can extend the
implementation of an event handler by overriding a handler method,
providing your own implementation, and at the end of the method calling
the same handler method in the super class.IGenericEventsHandler: You can replace the
default implementation of the event handler for the Refresh, Edit Mode or
Preview events.com.sap.portal.admin.editorframework.eventsHandler property
of the component-config element for the editor component in the
portalapp.xml file.| Constructor and Description |
|---|
GenericEventsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleCloseEvent(IEditorContext context,
ILockingPolicy lockingPolicy,
PPLogger logger)
Handles a close event.
|
void |
handleEditModeEvent(IEditorContext context,
PPLogger logger)
Handles an edit mode event.
|
void |
handlePreviewEvent(IEditorContext context,
PPLogger logger)
Handles a preview event.
|
void |
handleRefreshEvent(IEditorContext context,
PPLogger logger)
Handles a refresh event.
|
void |
handleSaveEvent(IEditorContext context,
IDataHandler dataHandler,
ILockingPolicy lockingPolicy,
PPLogger logger)
Handles a save event.
|
public void handleCloseEvent(IEditorContext context, ILockingPolicy lockingPolicy, PPLogger logger)
IGenericEventsHandlerhandleCloseEvent in interface IGenericEventsHandlercontext - the current editor contextlockingPolicy - the locking policy to use to release the locklogger - a logger for logging messagespublic void handleEditModeEvent(IEditorContext context, PPLogger logger)
IGenericEventsHandlerhandleEditModeEvent in interface IGenericEventsHandlercontext - the current editor contextlogger - a logger for logging messagespublic void handlePreviewEvent(IEditorContext context, PPLogger logger)
IGenericEventsHandlerhandlePreviewEvent in interface IGenericEventsHandlercontext - the current editor contextlogger - a logger for logging messagespublic void handleRefreshEvent(IEditorContext context, PPLogger logger)
IGenericEventsHandlerhandleRefreshEvent in interface IGenericEventsHandlercontext - the current editor contextlogger - a logger for logging messagespublic void handleSaveEvent(IEditorContext context, IDataHandler dataHandler, ILockingPolicy lockingPolicy, PPLogger logger)
IGenericEventsHandlerhandleSaveEvent in interface IGenericEventsHandlercontext - the current editor contextdataHandler - the handler of the datalockingPolicy - the locking policy to use for the save operationlogger - a logger for logging messages| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/admin/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice