com.vaadin.client.widgets.

Class Grid.GridEvent<T>

  • Type Parameters:

    T - The row type of the grid

    Direct Known Subclasses:

    Grid.EditorDomEvent

    Enclosing class:

    Grid<T>

    public static class Grid.GridEvent<T>
    extends Object

    A wrapper for native DOM events originating from Grid. In addition to the native event, contains a CellReference instance specifying which cell the event originated from.

    Since:

    7.6

    • Constructor Detail

      • GridEvent

        protected GridEvent​(com.google.gwt.user.client.Event event,
                            EventCellReference<T> cell)

        Constructs a new Grid.GridEvent.

        Parameters:

        event - a native event

        cell - the cell the event targets

    • Method Detail

      • getDomEvent

        public com.google.gwt.user.client.Event getDomEvent()

        Returns the wrapped DOM event.

        Returns:

        the DOM event

      • getCell

        public EventCellReference<T> getCell()

        Returns the Grid cell this event originated from.

        Returns:

        the event cell

      • getGrid

        public Grid<T> getGrid()

        Returns the Grid instance this event originated from.

        Returns:

        the grid

      • isHandled

        public boolean isHandled()

        Check whether this event has already been marked as handled.

        Returns:

        whether this event has already been marked as handled

      • setHandled

        public void setHandled​(boolean handled)

        Set the status of this event. Setting to true effectively marks this event as having already been handled.

        Parameters:

        handled - true if the event has already been handled, false otherwise