com.vaadin.flow.component.crud.

Class Crud.NewEvent<E>

    • Constructor Detail

      • NewEvent

        public NewEvent(Crud<E> source,
                        boolean fromClient,
                        @EventData(value="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

        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