Package com.google.appengine.demos.sticky.client.model.Model

Examples of com.google.appengine.demos.sticky.client.model.Model.StatusObserver


  public void reset() {
    activeId++;
    notesCache.clear();
    timestamp = null;

    final StatusObserver statusObserver = model.getStatusObserver();
    statusObserver.onTaskStarted("Loading '"
        + model.getSelectedSurface().getTitle() + "' ...");

    // If the surface has not been saved, we know there are no notes
    // associated with it, so it is safe to just synthesize an event on the
    // client.
    if (model.getSelectedSurface().hasKey()) {
      startInitialLoad();
    } else {
      statusObserver.onTaskFinished();
      model.notifySurfaceNotesReceived(new Note[0]);
      startPolling();
    }
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.demos.sticky.client.model.Model.StatusObserver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.