public class ModeChangeEvent extends PageEditorEvent
ModeChangeEvent is a notification that the end-user has
switched to edit mode from view mode.| Constructor and Description |
|---|
ModeChangeEvent(java.lang.String newMode,
java.lang.String oldMode) |
| Modifier and Type | Method and Description |
|---|---|
Event |
getEventType()
Returns the type of this event.
|
java.lang.String |
getNewMode()
Returns new mode when mode is changed from edit to view or viceversa.
|
java.lang.String |
getOldMode()
Returns the old mode when mode is changed from edit to view or viceversa.
|
void |
processListener(PageEditorListener listener)
Calling this method throws
UnsupportedOperationException
Method is not supported for ModeChangeEvent. |
isEventHandled, setEventHandledpublic ModeChangeEvent(java.lang.String newMode,
java.lang.String oldMode)
public final Event getEventType()
getEventType in class PageEditorEventEvent.EDIT_MODE_EVENT.public void processListener(PageEditorListener listener) throws javax.faces.event.AbortProcessingException
UnsupportedOperationException
Method is not supported for ModeChangeEvent.processListener in class PageEditorEventlistener - PageEditorListener to send this
CloseEvent to.javax.faces.event.AbortProcessingException - Signal Page Editor that no further
processing on the current event should be performed.public java.lang.String getOldMode()
ModeContext.EDIT_MODE if the current mode is
Edit and switching to View mode. Returns
ModeContext.VIEW_MODE if the current mode is View and
switching to Edit mode.public java.lang.String getNewMode()
ModeContext.VIEW_MODE if the current mode is
Edit and switching to View mode. Returns
ModeContext.EDIT_MODE if the current mode is View and
switching to Edit mode.