Class 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.
      • 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 Detail

      • CancelSelectedEvent

        public CancelSelectedEvent​(org.zkoss.zk.ui.Component target,
                                   com.saperion.ngc.iform.xml.SaveActionType saveAction)
        Parameters:
        target - Target
        saveAction - save action
    • 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