- Enclosing interface:
- EntityEditModel
public static interface EntityEditModel.Update
Represents a task for updating entities.
Update update = editModel.createUpdate();
Update.Task task = update.prepare();
// Can safely be called in a background thread
Update.Result result = task.perform();
Collection<Entity> updatedEntities = result.handle();
EntityEditModel.Update.Task.perform()
may be called on a background thread while prepare()
and EntityEditModel.Update.Result.handle()
must be called on the UI thread.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The update task resultstatic interface
The task performing the update operation -
Method Summary
Modifier and TypeMethodDescriptionprepare()
Notifies listeners that an update is about to be performed.
-
Method Details
-
prepare
EntityEditModel.Update.Task prepare()Notifies listeners that an update is about to be performed. Must be called on the UI thread if this model has a panel based on it.- Returns:
- the update task
-