Class RowEditorExitEvent

All Implemented Interfaces:
Cancellable

public class RowEditorExitEvent extends BrowserEvent<RowEditorExitHandler> implements Cancellable
  • Constructor Details

  • Method Details

    • getFiringCanvas

      public Canvas getFiringCanvas()
      Returns the Canvas firing the event.
      Returns:
      Canvas firing the event
    • fire

      public static <S extends HasRowEditorExitHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
      Fires a open event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.
      Type Parameters:
      S - The event source
      Parameters:
      source - the source of the handlers
      jsObj - the native event
    • getType

      public static GwtEvent.Type<RowEditorExitHandler> getType()
      Gets the type associated with this event.
      Returns:
      returns the handler type
    • dispatch

      protected void dispatch(RowEditorExitHandler handler)
      Specified by:
      dispatch in class GwtEvent<RowEditorExitHandler>
    • getAssociatedType

      public final GwtEvent.Type<RowEditorExitHandler> getAssociatedType()
      Specified by:
      getAssociatedType in class GwtEvent<RowEditorExitHandler>
    • cancel

      public void cancel()
      Calling this method will cancel the default behavior (for example saving the row) and leave the editor visible and focus in this edit cell.
      Specified by:
      cancel in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if cancelled
    • getEditCompletionEvent

      public EditCompletionEvent getEditCompletionEvent()
      How was the edit completion fired?
      Returns:
      How was the edit completion fired?
    • getRecord

      public ListGridRecord getRecord()
      record for the cell being edited
      Returns:
      record for the cell being edited
    • getNewValues

      public Map getNewValues()
      new values for the record [Note that fields that have not been edited will not be included in this object]
      Returns:
      new values for the record [Note that fields that have not been edited will not be included in this object]
    • getRowNum

      public int getRowNum()
      row number for the row being left
      Returns:
      row number for the row being left