Package com.vaadin.client.widgets
Class Grid.GridEvent<T>
- java.lang.Object
-
- com.vaadin.client.widgets.Grid.GridEvent<T>
-
- Type Parameters:
T
- The row type of the grid
- Direct Known Subclasses:
Grid.EditorDomEvent
public static class Grid.GridEvent<T> extends Object
A wrapper for native DOM events originating from Grid. In addition to the native event, contains aCellReference
instance specifying which cell the event originated from.- Since:
- 7.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GridEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventCellReference<T>
getCell()
Returns the Grid cell this event originated from.com.google.gwt.user.client.Event
getDomEvent()
Returns the wrapped DOM event.Grid<T>
getGrid()
Returns the Grid instance this event originated from.boolean
isHandled()
Check whether this event has already been marked as handled.void
setHandled(boolean handled)
Set the status of this event.
-
-
-
Constructor Detail
-
GridEvent
protected GridEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell)
-
-
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 totrue
effectively marks this event as having already been handled.- Parameters:
handled
-
-
-