com.vaadin.client.widgets
Class Grid.EditorDomEvent<T>

java.lang.Object
  extended by com.vaadin.client.widgets.Grid.GridEvent<T>
      extended by com.vaadin.client.widgets.Grid.EditorDomEvent<T>
Type Parameters:
T - the row type of the grid
Enclosing class:
Grid<T>

public static class Grid.EditorDomEvent<T>
extends Grid.GridEvent<T>

A wrapper for native DOM events related to the Grid editor .

Since:
7.6

Constructor Summary
protected Grid.EditorDomEvent(Event event, EventCellReference<T> cell, Widget editorWidget)
           
 
Method Summary
 Grid.Editor<T> getEditor()
          Returns the editor of the Grid this event originated from.
 Widget getEditorWidget()
          Returns the currently focused editor widget.
 int getFocusedColumnIndex()
          Returns the column index 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.EditorDomEvent

protected Grid.EditorDomEvent(Event event,
                              EventCellReference<T> cell,
                              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 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 column index the editor was opened at. If the editor is not open, returns -1.

Returns:
the column index or -1 if editor is not open


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.