Package com.vaadin.client.widgets
Class Grid.EditorDomEvent<T>
- java.lang.Object
-
- com.vaadin.client.widgets.Grid.GridEvent<T>
-
- com.vaadin.client.widgets.Grid.EditorDomEvent<T>
-
- Type Parameters:
T
- the row type of the grid
public static class Grid.EditorDomEvent<T> extends Grid.GridEvent<T>
A wrapper for native DOM events related to theGrid editor
.- Since:
- 7.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EditorDomEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell, com.google.gwt.user.client.ui.Widget editorWidget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid.Editor<T>
getEditor()
Returns the editor of the Grid this event originated from.com.google.gwt.user.client.ui.Widget
getEditorWidget()
Returns the currently focused editor widget.int
getFocusedColumnIndex()
Returns the DOM column index (excluding hidden columns) the editor was opened at.int
getRowIndex()
Returns the row index the editor is open at.-
Methods inherited from class com.vaadin.client.widgets.Grid.GridEvent
getCell, getDomEvent, getGrid, isHandled, setHandled
-
-
-
-
Constructor Detail
-
EditorDomEvent
protected EditorDomEvent(com.google.gwt.user.client.Event event, EventCellReference<T> cell, com.google.gwt.user.client.ui.Widget editorWidget)
-
-
Method Detail
-
getEditor
public Grid.Editor<T> getEditor()
Returns the editor of the Grid this event originated from.- Returns:
- the related editor instance
-
getEditorWidget
public com.google.gwt.user.client.ui.Widget getEditorWidget()
Returns the currently focused editor widget.- Returns:
- the focused editor widget or
null
if not editable
-
getRowIndex
public int getRowIndex()
Returns the row index the editor is open at. If the editor is not open, returns -1.- Returns:
- the index of the edited row or -1 if editor is not open
-
getFocusedColumnIndex
public int getFocusedColumnIndex()
Returns the DOM column index (excluding hidden columns) the editor was opened at. If the editor is not open, returns -1.- Returns:
- the column index or -1 if editor is not open
-
-