|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the row data typepublic interface EditorHandler<T>
An interface for binding widgets and data to the grid row editor. Used by the editor to support different row types, data sources and custom data binding mechanisms.
| Nested Class Summary | |
|---|---|
static interface |
EditorHandler.EditorRequest<T>
A request class passed as a parameter to the editor handler methods. |
| Method Summary | |
|---|---|
void |
bind(EditorHandler.EditorRequest<T> request)
Binds row data to the editor widgets. |
void |
cancel(EditorHandler.EditorRequest<T> request)
Called by the editor when editing is cancelled. |
Widget |
getWidget(Grid.Column<?,T> column)
Returns a widget instance that is used to edit the values in the given column. |
void |
save(EditorHandler.EditorRequest<T> request)
Commits changes in the currently active edit to the data source. |
| Method Detail |
|---|
void bind(EditorHandler.EditorRequest<T> request)
The implementation must call either
EditorHandler.EditorRequest.success() or
EditorHandler.EditorRequest.failure(String, Collection) to signal a successful
or a failed (respectively) bind action.
request - the data binding requestGrid.editRow(int)void cancel(EditorHandler.EditorRequest<T> request)
In contrast to bind(EditorRequest) and
save(EditorRequest), any calls to
EditorHandler.EditorRequest.success() or
EditorHandler.EditorRequest.failure(String, Collection) have no effect on the
outcome of the cancel action. The editor is already closed when this
method is called.
request - the cancel requestGrid.cancelEditor()void save(EditorHandler.EditorRequest<T> request)
The implementation must call either
EditorHandler.EditorRequest.success() or EditorRequest#fail() to signal
a successful or a failed (respectively) save action.
request - the save requestGrid.saveEditor()Widget getWidget(Grid.Column<?,T> column)
column - the column whose values should be edited
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||