Interface EntityEditModel.Update

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

    • 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