com.vaadin.flow.component.grid.

Class ItemDoubleClickEvent<T>

    • Constructor Detail

      • ItemDoubleClickEvent

        public ItemDoubleClickEvent(Grid<T> source,
                                    boolean fromClient,
                                    @EventData(value="event.detail.itemKey")
                                    String itemKey,
                                    @EventData(value="event.detail.screenX")
                                    int screenX,
                                    @EventData(value="event.detail.screenY")
                                    int screenY,
                                    @EventData(value="event.detail.clientX")
                                    int clientX,
                                    @EventData(value="event.detail.clientY")
                                    int clientY,
                                    @EventData(value="event.detail.detail")
                                    int clickCount,
                                    @EventData(value="event.detail.button")
                                    int button,
                                    @EventData(value="event.detail.ctrlKey")
                                    boolean ctrlKey,
                                    @EventData(value="event.detail.shiftKey")
                                    boolean shiftKey,
                                    @EventData(value="event.detail.altKey")
                                    boolean altKey,
                                    @EventData(value="event.detail.metaKey")
                                    boolean metaKey)

        Creates a new item double click event.

        Parameters:

        source - the component that fired the event

        fromClient - true if the event was originally fired on the client, false if the event originates from server-side logic

        screenX - the x coordinate of the click event, relative to the upper left corner of the screen, -1 if unknown

        screenY - the y coordinate of the click event, relative to the upper left corner of the screen, -i if unknown

        clientX - the x coordinate of the click event, relative to the upper left corner of the browser viewport, -1 if unknown

        clientY - the y coordinate of the click event, relative to the upper left corner of the browser viewport, -1 if unknown

        clickCount - the number of consecutive clicks recently recorded

        button - the id of the pressed mouse button

        ctrlKey - true if the control key was down when the event was fired, false otherwise

        shiftKey - true if the shift key was down when the event was fired, false otherwise

        altKey - true if the alt key was down when the event was fired, false otherwise

        metaKey - true if the meta key was down when the event was fired, false otherwise