Package com.vaadin.flow.component.crud
Class Crud.SaveEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Crud<E>>
-
- com.vaadin.flow.component.crud.Crud.SaveEvent<E>
-
- Type Parameters:
E
- the bean type
- All Implemented Interfaces:
Serializable
@DomEvent("save") public static class Crud.SaveEvent<E> extends ComponentEvent<Crud<E>>
Event fired when the user tries to save a new item or modifications to an existing item.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getItem()
Gets the item being currently edited.-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
SaveEvent
public SaveEvent(Crud<E> source, boolean fromClient, @EventData("event.preventDefault()") Object ignored)
Creates a new event using the given source and indicator whether the event originated from the client side or the server side.- Parameters:
source
- the source componentfromClient
-true
if the event originated from the clientignored
- an ignored parameter for a side effect
-
-