com.vaadin.flow.component.crud.
Class Crud.EditEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Crud<E>>
-
- com.vaadin.flow.component.crud.Crud.EditEvent<E>
-
Type Parameters:
E
- the bean typeAll Implemented Interfaces:
@DomEvent("edit") public static class Crud.EditEvent<E> extends ComponentEvent<Crud<E>>
Event fired when the user starts to edit an existing item.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Method Summary
All 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
-
EditEvent
public EditEvent​(Crud<E> source, boolean fromClient, @EventData("event.detail.item") elemental.json.JsonObject item, @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 clientitem
- the item to be edited, provided in JSON as internally represented in Gridignored
- an ignored parameter for a side effect
-
-
Method Detail
-
getItem
public E getItem()
Gets the item being currently edited.
Returns:
the item being currently edited
-
-