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,
boolean afterBeingSaved)
Called by the editor when editing is cancelled.
|
void |
checkValidity()
Called by the editor's event handler when editing is shifting to a new
row in order to check the validity of the binder's value.
|
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, boolean afterBeingSaved)
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 requestafterBeingSaved - if true then this method is called to close editor
after save action, otherwise it represents a cancel actionGrid.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 editedvoid checkValidity()
Copyright © 2023 Vaadin Ltd. All rights reserved.