Package com.saperion.ngc.events
Class CancelSelectedEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
com.saperion.ngc.events.CancelSelectedEvent
- All Implemented Interfaces:
Serializable
public class CancelSelectedEvent
extends org.zkoss.zk.ui.event.Event
This event is sent to the resultset when editing the index of an element was canceled.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCancelSelectedEvent
(org.zkoss.zk.ui.Component target, com.saperion.ngc.iform.xml.SaveActionType saveAction) -
Method Summary
Modifier and TypeMethodDescriptionReturns the edit-event that started the edit-action that resulted in this cancel-event.com.saperion.ngc.iform.xml.SaveActionType
void
setEditEvent
(EditSelectedEvent editEvent) Sets the edit-event that started the edit-action that resulted in this cancel-event.Methods inherited from class org.zkoss.zk.ui.event.Event
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
-
Constructor Details
-
CancelSelectedEvent
public CancelSelectedEvent(org.zkoss.zk.ui.Component target, com.saperion.ngc.iform.xml.SaveActionType saveAction) - Parameters:
target
- TargetsaveAction
- save action
-
-
Method Details
-
getSaveAction
public com.saperion.ngc.iform.xml.SaveActionType getSaveAction()- Returns:
- the action to perform after cancel
-
getEditEvent
Returns the edit-event that started the edit-action that resulted in this cancel-event. The event can be used to repeat the last edit-action when a cancel-and-button was pressed.- Returns:
- the last edit-event or null if not set
-
setEditEvent
Sets the edit-event that started the edit-action that resulted in this cancel-event. The event can be used to repeat the last edit-action when a cancel-and-button was pressed.- Parameters:
editEvent
- the last edit-event
-