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

Examples of com.google.appengine.demos.sticky.client.model.Surface


    return clients;
  }

  private static Surface toClientSurface(Store.Surface surface) {
    final List<String> names = surface.getAuthorNames();
    return new Surface(KeyFactory.keyToString(surface.getKey()), surface
        .getTitle(), names.toArray(new String[names.size()]), surface
        .getNotes().size(), surface.getLastUpdatedAt());
  }
View Full Code Here


    }
  }

  private Surface getSurface(Store.Api api, Key key) {
    // Attempt to load from cache.
    final Surface fromCache = cache.getSurface(key);
    if (fromCache != null) {
      return fromCache;
    }

    // Cache lookup failed, query the data store.
View Full Code Here

    add(controller.getButton());

    editController = new EditController(model, images, "header-author-edit");

    final Surface surface = model.getSelectedSurface();
    surface.addObserver(this);
    attachTitleView(images, surface);

    add(new LoginInfoView(model.getCurrentAuthor(), model.getLogoutUrl()));
    model.addDataObserver(this);
  }
View Full Code Here

TOP

Related Classes of com.google.appengine.demos.sticky.client.model.Surface

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.