Interface EntityEditModel.Delete

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.
  • Method Details

    • 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