Package com.vaadin.flow.component.crud
Class Crud.DeleteEvent<E>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Crud<E>>
com.vaadin.flow.component.crud.Crud.DeleteEvent<E>
- Type Parameters:
E
- the bean type
- All Implemented Interfaces:
Serializable
Event fired when the user tries to delete an existing item.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDeleteEvent
(Crud<E> source, boolean fromClient, Object ignored) Creates a new event using the given source and indicator whether the event originated from the client side or the server side. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
DeleteEvent
public DeleteEvent(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
-
-
Method Details
-
getItem
Gets the item being currently edited.- Returns:
- the item being currently edited
-