|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.grid.EditorRowHandler.EditorRowRequest<T>
public static class EditorRowHandler.EditorRowRequest<T>
A request class for handling asynchronous data binding. The request is callback-based to facilitate usage with remote or otherwise asynchronous data sources.
TODO Should have a mechanism for signaling a failed request to the caller
| Nested Class Summary | |
|---|---|
static interface |
EditorRowHandler.EditorRowRequest.RequestCallback<T>
A callback interface used to notify the caller about completed requests. |
| Constructor Summary | |
|---|---|
EditorRowHandler.EditorRowRequest(Grid<T> grid,
int rowIndex,
EditorRowHandler.EditorRowRequest.RequestCallback<T> callback)
Creates a new editor row request. |
|
| Method Summary | |
|---|---|
Grid<T> |
getGrid()
Returns the grid instance related to this editor row 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(GridColumn<?,T> column)
Returns the editor row widget used to edit the values of the given column. |
void |
invokeCallback()
Invokes the stored callback if it is not null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorRowHandler.EditorRowRequest(Grid<T> grid,
int rowIndex,
EditorRowHandler.EditorRowRequest.RequestCallback<T> callback)
rowIndex - the index of the edited rowcallback - the callback invoked when the request is ready, or null if
no need to call back| Method Detail |
|---|
public int getRowIndex()
public T getRow()
public Grid<T> getGrid()
public Widget getWidget(GridColumn<?,T> column)
column - the column whose widget to get
public void invokeCallback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||