Class EditorEvent<T>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.grid.editor.EditorEvent<T>
Type Parameters:
T - the item type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EditorCancelEvent, EditorCloseEvent, EditorOpenEvent, EditorSaveEvent

public abstract class EditorEvent<T> extends EventObject
Base class for events fired in Editor.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • EditorEvent

      public EditorEvent(Editor<T> editor, T item)
      Constructor for the editor event.
      Parameters:
      editor - the source of the event
      item - the item being edited
  • Method Details

    • getSource

      public Editor<T> getSource()
      Overrides:
      getSource in class EventObject
    • getGrid

      public Grid<T> getGrid()
      Gets the editors' grid.
      Returns:
      the editors' grid
    • getItem

      public T getItem()
      Gets the item being edited.
      Returns:
      the item being edited