Package com.vaadin.featurepack.ui
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
ConstructorsConstructorDescriptionFGridEditorImpl(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 TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddCancelListener(com.vaadin.flow.component.grid.editor.EditorCancelListener<T> listener) com.vaadin.flow.shared.RegistrationaddCloseListener(com.vaadin.flow.component.grid.editor.EditorCloseListener<T> listener) com.vaadin.flow.shared.RegistrationaddOpenListener(com.vaadin.flow.component.grid.editor.EditorOpenListener<T> listener) com.vaadin.flow.shared.RegistrationaddSaveListener(com.vaadin.flow.component.grid.editor.EditorSaveListener<T> listener) voidcancel()voidvoidvoidgenerateData(T item, tools.jackson.databind.node.ObjectNode jsonObject) com.vaadin.flow.data.binder.Binder<T> com.vaadin.flow.component.grid.Grid<T> getGrid()getItem()booleanbooleanisOpen()voidrefresh()booleansave()com.vaadin.flow.component.grid.editor.Editor<T> com.vaadin.flow.component.grid.editor.Editor<T> setBuffered(boolean buffered) Methods inherited from class com.vaadin.flow.component.grid.Grid.AbstractGridExtension
extend, refresh, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setBinderin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
getBinder
- Specified by:
getBinderin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
setBuffered
- Specified by:
setBufferedin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
isBuffered
public boolean isBuffered()- Specified by:
isBufferedin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
save
public boolean save()- Specified by:
savein interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
cancel
public void cancel()- Specified by:
cancelin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
closeEditor
public void closeEditor()- Specified by:
closeEditorin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
editItem
- Specified by:
editItemin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
refresh
public void refresh()- Specified by:
refreshin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
getItem
- Specified by:
getItemin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-
getGrid
-
generateData
- Specified by:
generateDatain interfacecom.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:
addSaveListenerin interfacecom.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:
addCancelListenerin interfacecom.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:
addOpenListenerin interfacecom.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:
addCloseListenerin interfacecom.vaadin.flow.component.grid.editor.Editor<T>
-