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