|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the row data typepublic interface EditorRowHandler<T>
An interface for binding widgets and data to the editor row. Used by the editor row to support different row types, data sources and custom data binding mechanisms.
| Nested Class Summary | |
|---|---|
static class |
EditorRowHandler.EditorRowRequest<T>
A request class for handling asynchronous data binding. |
| Method Summary | |
|---|---|
void |
bind(EditorRowHandler.EditorRowRequest<T> request)
Binds row data to the editor row widgets. |
void |
cancel(EditorRowHandler.EditorRowRequest<T> request)
Cancels a currently active edit if any. |
void |
commit(EditorRowHandler.EditorRowRequest<T> request)
Commits changes in the currently active edit to the data source. |
void |
discard(EditorRowHandler.EditorRowRequest<T> request)
Discards any unsaved changes and reloads editor content from the data source. |
Widget |
getWidget(GridColumn<?,T> column)
Returns a widget instance that is used to edit the values in the given column. |
| Method Detail |
|---|
void bind(EditorRowHandler.EditorRowRequest<T> request)
An implementation must call request.invokeCallback() when the binding is complete (possibly
asynchronously).
request - the data binding requestEditorRow.editRow(int)void cancel(EditorRowHandler.EditorRowRequest<T> request)
An implementation must call request.invokeCallback() when the cancel is done (possibly
asynchronously).
request - the cancel requestEditorRow.cancel()void commit(EditorRowHandler.EditorRowRequest<T> request)
request - the commit requestvoid discard(EditorRowHandler.EditorRowRequest<T> request)
Implementation note: This method may simply call
bind if no other processing needs to be
done.
request - the discard requestWidget getWidget(GridColumn<?,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 | |||||||||