com.smartgwt.client.widgets.com.smartgwt.client.widgets.events

## Interface HasBeforeCommitHandlers

- All Superinterfaces:
    com.google.gwt.event.shared.HasHandlers
  All Known Implementing Classes:
    BatchUploader, BatchUploader

      public interface HasBeforeCommitHandlers
      extends com.google.gwt.event.shared.HasHandlers

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.event.shared.HandlerRegistration` | `addBeforeCommitHandler(BeforeCommitHandler handler)` Notification method fired when the `commitButton` is clicked.

    - ### Methods inherited from interface com.google.gwt.event.shared.HasHandlers

      `fireEvent`

- - ### Method Detail

    - #### addBeforeCommitHandler

          com.google.gwt.event.shared.HandlerRegistration addBeforeCommitHandler(BeforeCommitHandler handler)

      Notification method fired when the `commitButton` is clicked.

      This notification occurs before actually committing data to the server. It allows to make changes to the data after user edits, but before it will be sent to server.

      Read also `BatchUploader.previewShown()` docs for details how to change data in grid and for possibility to interrupt upload process on the server as well.

      Parameters:
        `handler` - the beforeCommit handler
      Returns:
        `HandlerRegistration` used to remove this handler