We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.crud.
Class Crud.CancelEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Crud<E>>
-
- com.vaadin.flow.component.crud.Crud.CancelEvent<E>
-
Type Parameters:
E
- the bean typeAll Implemented Interfaces:
@DomEvent("cancel") public static class Crud.CancelEvent<E> extends ComponentEvent<Crud<E>>
Event fired when the user cancels the creation of a new item or modifications to an existing item.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description CancelEvent​(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
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
-
CancelEvent
public CancelEvent​(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
-
-