com.sap.portal.admin.editor
Class GenericEventsHandler
java.lang.Object
|
+--com.sap.portal.admin.editor.GenericEventsHandler
- All Implemented Interfaces:
- IGenericEventsHandler
- public class GenericEventsHandler
- extends java.lang.Object
- implements IGenericEventsHandler
GenericEventsHandler
A default implementation for the application designer toolbar
event handler.
Save- save the editor data.
Close- clear the editor state. release lock
Refresh- restart data
Preview- empty implementation
Edit Mode - same as refresh.
This class can be inherited for more specific use.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericEventsHandler
public GenericEventsHandler()
handleCloseEvent
public void handleCloseEvent(IEditorContext context,
ILockingPolicy lockingPolicy,
com.sapportals.common.PPLogger logger)
- Description copied from interface:
IGenericEventsHandler
- Handle the "close" event that was raised.
The editor framework will try to release lock after this method finished successfully.
- Specified by:
handleCloseEvent in interface IGenericEventsHandler
- Following copied from interface:
com.sap.portal.admin.editor.IGenericEventsHandler
- Parameters:
context - current editor contextlockingPolicy - the locking policy which can be used for the release lock operationlogger -
handleEditModeEvent
public void handleEditModeEvent(IEditorContext context,
com.sapportals.common.PPLogger logger)
- Description copied from interface:
IGenericEventsHandler
- Handle the "edit mode" event that was raised.
- Specified by:
handleEditModeEvent in interface IGenericEventsHandler
- Following copied from interface:
com.sap.portal.admin.editor.IGenericEventsHandler
- Parameters:
context - current editor contextlogger - to log messages
handlePreviewEvent
public void handlePreviewEvent(IEditorContext context,
com.sapportals.common.PPLogger logger)
- Description copied from interface:
IGenericEventsHandler
- Handle the "preview" event that was raised.
- Specified by:
handlePreviewEvent in interface IGenericEventsHandler
- Following copied from interface:
com.sap.portal.admin.editor.IGenericEventsHandler
- Parameters:
context - current editor contextlogger - to log messages
handleRefreshEvent
public void handleRefreshEvent(IEditorContext context,
com.sapportals.common.PPLogger logger)
- Description copied from interface:
IGenericEventsHandler
- Handle the "refresh" event that was raised.
- Specified by:
handleRefreshEvent in interface IGenericEventsHandler
- Following copied from interface:
com.sap.portal.admin.editor.IGenericEventsHandler
- Parameters:
context - current editor contextlogger - to log messages
handleSaveEvent
public void handleSaveEvent(IEditorContext context,
IDataHandler dataHandler,
ILockingPolicy lockingPolicy,
com.sapportals.common.PPLogger logger)
- Description copied from interface:
IGenericEventsHandler
- Handle the "save" event that was raised.
The editor framework will try to save data (using the data handler plugin) after this method finished successfully.
- Specified by:
handleSaveEvent in interface IGenericEventsHandler
- Following copied from interface:
com.sap.portal.admin.editor.IGenericEventsHandler
- Parameters:
context - current editor contextdataHandler - the handler of the data- can be perform the savelockingPolicy - the locking policy which can be used for the save operationlogger - to log messages