Class GridPro.CellEditStartedEvent<E>

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

    @DomEvent("cell-edit-started")
    public static class GridPro.CellEditStartedEvent<E>
    extends com.vaadin.flow.component.ComponentEvent<GridPro<E>>
    Event fired when the user starts to edit an existing item.
    See Also:
    Serialized Form
    • Constructor Detail

      • CellEditStartedEvent

        public CellEditStartedEvent​(GridPro<E> source,
                                    boolean fromClient,
                                    @EventData("event.detail.item")
                                    elemental.json.JsonObject item,
                                    @EventData("event.detail.path")
                                    String path)
        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
        path - item subproperty that was changed
    • Method Detail

      • getItem

        public E getItem()
        Gets an instance of edited item.
        Returns:
        the instance of edited item