com.vaadin.client.widget.grid.

Interface EditorHandler<T>

  • Type Parameters:

    T - the row data type

    public interface EditorHandler<T>

    An interface for binding widgets and data to the grid row editor. Used by the editor to support different row types, data sources and custom data binding mechanisms.

    Since:

    7.4

    Author:

    Vaadin Ltd

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface Description
      static interface  EditorHandler.EditorRequest<T>

      A request class passed as a parameter to the editor handler methods.

    • Method Summary

      All Methods
      Modifier and Type Method Description
      void bind​(EditorHandler.EditorRequest<T> request)

      Binds row data to the editor widgets.

      void cancel​(EditorHandler.EditorRequest<T> request, boolean afterBeingSaved)

      Called by the editor when editing is cancelled.

      void checkValidity()

      Called by the editor's event handler when editing is shifting to a new row in order to check the validity of the binder's value.

      com.google.gwt.user.client.ui.Widget getWidget​(Grid.Column<?,​T> column)

      Returns a widget instance that is used to edit the values in the given column.

      void save​(EditorHandler.EditorRequest<T> request)

      Commits changes in the currently active edit to the data source.