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

    Constructors
    Constructor
    Description
    CancelSelectedEvent(org.zkoss.zk.ui.Component target, com.saperion.ngc.iform.xml.SaveActionType saveAction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the edit-event that started the edit-action that resulted in this cancel-event.
    com.saperion.ngc.iform.xml.SaveActionType
     
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CancelSelectedEvent

      public CancelSelectedEvent(org.zkoss.zk.ui.Component target, com.saperion.ngc.iform.xml.SaveActionType saveAction)
      Parameters:
      target - Target
      saveAction - save action
  • Method Details

    • 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