Package com.saperion.ngc.events
Class CancelSelectedEvent
- java.lang.Object
-
- org.zkoss.zk.ui.event.Event
-
- com.saperion.ngc.events.CancelSelectedEvent
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelSelectedEvent(org.zkoss.zk.ui.Component target, com.saperion.ngc.iform.xml.SaveActionType saveAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditSelectedEvent
getEditEvent()
Returns the edit-event that started the edit-action that resulted in this cancel-event.com.saperion.ngc.iform.xml.SaveActionType
getSaveAction()
void
setEditEvent(EditSelectedEvent editEvent)
Sets the edit-event that started the edit-action that resulted in this cancel-event.
-
-
-
Method Detail
-
getSaveAction
public com.saperion.ngc.iform.xml.SaveActionType getSaveAction()
- Returns:
- the action to perform after cancel
-
getEditEvent
public EditSelectedEvent 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
public void setEditEvent(EditSelectedEvent editEvent)
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
-
-