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 aCellReferenceinstance specifying which cell the event originated from.- Since:
- 7.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGridEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell)Constructs a newGrid.GridEvent.
-
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.EventgetDomEvent()Returns the wrapped DOM event.Grid<T>getGrid()Returns the Grid instance this event originated from.booleanisHandled()Check whether this event has already been marked as handled.voidsetHandled(boolean handled)Set the status of this event.
-
-
-
Constructor Detail
-
GridEvent
protected GridEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell)Constructs a newGrid.GridEvent.- Parameters:
event- a native eventcell- 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 totrueeffectively marks this event as having already been handled.- Parameters:
handled-trueif the event has already been handled,falseotherwise
-
-