Class 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 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