Class JmixEditorBeforeSaveEvent<T>

java.lang.Object
java.util.EventObject
io.jmix.ui.widget.grid.JmixEditorBeforeSaveEvent<T>
Type Parameters:
T - the bean type
All Implemented Interfaces:
Serializable

public class JmixEditorBeforeSaveEvent<T> extends EventObject
An event that is fired before a Grid editor is saved.
See Also:
  • Field Details

    • bean

      protected T bean
    • columnFieldMap

      protected Map<com.vaadin.ui.Grid.Column<T,?>,com.vaadin.ui.Component> columnFieldMap
  • Constructor Details

    • JmixEditorBeforeSaveEvent

      public JmixEditorBeforeSaveEvent(com.vaadin.ui.components.grid.Editor<T> editor, T bean, Map<com.vaadin.ui.Grid.Column<T,?>,com.vaadin.ui.Component> columnFieldMap)
      Constructor for a editor save event.
      Parameters:
      editor - the source of the event
      bean - the bean being edited
  • Method Details

    • getSource

      public com.vaadin.ui.components.grid.Editor<T> getSource()
      Overrides:
      getSource in class EventObject
    • getGrid

      public com.vaadin.ui.Grid<T> getGrid()
      Gets the editor grid.
      Returns:
      the editor grid
    • getBean

      public T getBean()
      Gets the bean being edited.
      Returns:
      the bean being edited
    • getColumnFieldMap

      public Map<com.vaadin.ui.Grid.Column<T,?>,com.vaadin.ui.Component> getColumnFieldMap()
      Returns:
      a mapping of field to columns