Class Crud.EditEvent<E>

  • Type Parameters:
    E - the bean type
    All Implemented Interfaces:
    Serializable
    Enclosing class:
    Crud<E>

    @DomEvent("edit")
    public static class Crud.EditEvent<E>
    extends com.vaadin.flow.component.ComponentEvent<Crud<E>>
    Event fired when the user starts to edit an existing item.
    See Also:
    Serialized Form
    • 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 component
        fromClient - true if the event originated from the client
        item - the item to be edited, provided in JSON as internally represented in Grid
        ignored - 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