T - the row data typepublic static interface EditorHandler.EditorRequest<T>
An implementation must call either success() or #fail(),
according to whether the operation was a success or failed during
execution, respectively.
| Modifier and Type | Method and Description |
|---|---|
void |
failure()
Informs Grid that an error occurred while trying to process the
request.
|
default void |
failure(String errorMessage,
Collection<Grid.Column<?,T>> errorColumns)
Informs Grid that an error occurred while trying to process the
request.
|
int |
getColumnIndex()
Returns the DOM index of the column being focused.
|
Grid<T> |
getGrid()
Returns the grid instance related to this editor request.
|
T |
getRow()
Returns the row data related to the row being requested.
|
int |
getRowIndex()
Returns the index of the row being requested.
|
com.google.gwt.user.client.ui.Widget |
getWidget(Grid.Column<?,T> column)
Returns the editor widget used to edit the values of the given
column.
|
boolean |
isCompleted()
Checks whether the request is completed or not.
|
void |
success()
Informs Grid that the editor request was a success.
|
int getRowIndex()
int getColumnIndex()
T getRow()
Grid<T> getGrid()
com.google.gwt.user.client.ui.Widget getWidget(Grid.Column<?,T> column)
column - the column whose widget to getvoid success()
void failure()
default void failure(String errorMessage, Collection<Grid.Column<?,T>> errorColumns)
failure()
and Grid.Editor.setEditorError(String, Collection)errorMessage - and error message to show to the user, or
null to not show any message.errorColumns - a collection of columns for which an error indicator
should be shown, or null if no columns should
be marked as erroneous.Grid.Editor.setEditorError(String, Collection)boolean isCompleted()
true if the request is completedCopyright © 2018 Vaadin Ltd. All rights reserved.