Class FGridEditorImpl<T>

java.lang.Object
com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T>
com.vaadin.featurepack.ui.FGridEditorImpl<T>
Type Parameters:
T - the grid bean type
All Implemented Interfaces:
com.vaadin.flow.component.grid.editor.Editor<T>, com.vaadin.flow.data.provider.DataGenerator<T>, Serializable

public class FGridEditorImpl<T> extends com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T> implements com.vaadin.flow.component.grid.editor.Editor<T>
Implementation of Editor interface. Copy of @Grid's EditorImpl adjusted for feature-pack Vaadin 7 API.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    FGridEditorImpl(com.vaadin.flow.component.grid.Grid<T> grid, com.vaadin.flow.data.binder.PropertySet<T> propertySet, com.vaadin.flow.function.SerializableSupplier<FieldGroup> fieldGroupSupplier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addCancelListener(com.vaadin.flow.component.grid.editor.EditorCancelListener<T> listener)
     
    com.vaadin.flow.shared.Registration
    addCloseListener(com.vaadin.flow.component.grid.editor.EditorCloseListener<T> listener)
     
    com.vaadin.flow.shared.Registration
    addOpenListener(com.vaadin.flow.component.grid.editor.EditorOpenListener<T> listener)
     
    com.vaadin.flow.shared.Registration
    addSaveListener(com.vaadin.flow.component.grid.editor.EditorSaveListener<T> listener)
     
    void
     
    void
     
    void
    editItem(T item)
     
    void
    generateData(T item, tools.jackson.databind.node.ObjectNode jsonObject)
     
    com.vaadin.flow.data.binder.Binder<T>
     
    com.vaadin.flow.component.grid.Grid<T>
     
     
    boolean
     
    boolean
     
    void
     
    boolean
     
    com.vaadin.flow.component.grid.editor.Editor<T>
    setBinder(com.vaadin.flow.data.binder.Binder<T> binder)
     
    com.vaadin.flow.component.grid.editor.Editor<T>
    setBuffered(boolean buffered)
     

    Methods inherited from class com.vaadin.flow.component.grid.Grid.AbstractGridExtension

    extend, refresh, remove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.data.provider.DataGenerator

    destroyAllData, destroyData, refreshData
  • Constructor Details

    • FGridEditorImpl

      public FGridEditorImpl(com.vaadin.flow.component.grid.Grid<T> grid, com.vaadin.flow.data.binder.PropertySet<T> propertySet, com.vaadin.flow.function.SerializableSupplier<FieldGroup> fieldGroupSupplier)
  • Method Details

    • setBinder

      public com.vaadin.flow.component.grid.editor.Editor<T> setBinder(com.vaadin.flow.data.binder.Binder<T> binder)
      Specified by:
      setBinder in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • getBinder

      public com.vaadin.flow.data.binder.Binder<T> getBinder()
      Specified by:
      getBinder in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • setBuffered

      public com.vaadin.flow.component.grid.editor.Editor<T> setBuffered(boolean buffered)
      Specified by:
      setBuffered in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • isBuffered

      public boolean isBuffered()
      Specified by:
      isBuffered in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • save

      public boolean save()
      Specified by:
      save in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • cancel

      public void cancel()
      Specified by:
      cancel in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • closeEditor

      public void closeEditor()
      Specified by:
      closeEditor in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • editItem

      public void editItem(T item)
      Specified by:
      editItem in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • refresh

      public void refresh()
      Specified by:
      refresh in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • getItem

      public T getItem()
      Specified by:
      getItem in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • getGrid

      public com.vaadin.flow.component.grid.Grid<T> getGrid()
      Specified by:
      getGrid in interface com.vaadin.flow.component.grid.editor.Editor<T>
      Overrides:
      getGrid in class com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T>
    • generateData

      public void generateData(T item, tools.jackson.databind.node.ObjectNode jsonObject)
      Specified by:
      generateData in interface com.vaadin.flow.data.provider.DataGenerator<T>
    • addSaveListener

      public com.vaadin.flow.shared.Registration addSaveListener(com.vaadin.flow.component.grid.editor.EditorSaveListener<T> listener)
      Specified by:
      addSaveListener in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • addCancelListener

      public com.vaadin.flow.shared.Registration addCancelListener(com.vaadin.flow.component.grid.editor.EditorCancelListener<T> listener)
      Specified by:
      addCancelListener in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • addOpenListener

      public com.vaadin.flow.shared.Registration addOpenListener(com.vaadin.flow.component.grid.editor.EditorOpenListener<T> listener)
      Specified by:
      addOpenListener in interface com.vaadin.flow.component.grid.editor.Editor<T>
    • addCloseListener

      public com.vaadin.flow.shared.Registration addCloseListener(com.vaadin.flow.component.grid.editor.EditorCloseListener<T> listener)
      Specified by:
      addCloseListener in interface com.vaadin.flow.component.grid.editor.Editor<T>