|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the row data typepublic static interface EditorHandler.EditorRequest<T>
A request class passed as a parameter to the editor handler methods. The request is callback-based to facilitate usage with remote or otherwise asynchronous data sources.
An implementation must call either success() or #fail(),
according to whether the operation was a success or failed during
execution, respectively.
| Method Summary | |
|---|---|
void |
failure(java.lang.String errorMessage,
java.util.Collection<Grid.Column<?,T>> errorColumns)
Informs Grid that an error occurred while trying to process the request. |
int |
getColumnIndex()
Returns the 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. |
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. |
| Method Detail |
|---|
int getRowIndex()
int getColumnIndex()
T getRow()
Grid<T> getGrid()
Widget getWidget(Grid.Column<?,T> column)
column - the column whose widget to get
void success()
void failure(java.lang.String errorMessage,
java.util.Collection<Grid.Column<?,T>> errorColumns)
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.boolean isCompleted()
true iff the request is completed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||