T - the row data typepublic interface EditorHandler<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EditorHandler.EditorRequest<T>
A request class passed as a parameter to the editor handler methods.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
com.google.gwt.user.client.ui.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.
|
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()com.google.gwt.user.client.ui.Widget getWidget(Grid.Column<?,T> column)
column - the column whose values should be editedCopyright © 2016 Vaadin Ltd. All rights reserved.