Package com.google.gwt.sample.gaerequest.shared

Examples of com.google.gwt.sample.gaerequest.shared.GaeUserServiceRequest


    initWidget(BINDER.createAndBindUi(this));
  }

  @Override
  protected void onLoad() {
    GaeUserServiceRequest request = requests.userServiceRequest();

    request.createLogoutURL(Location.getHref()).to(new Receiver<String>() {
      @Override
      public void onSuccess(String response) {
        setLogoutUrl(response);
      }
    });
    request.getCurrentUser().to(new Receiver<GaeUser>() {
      @Override
      public void onSuccess(GaeUser response) {
        setUserName(response.getNickname());
      }
    });
    request.fire();
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.sample.gaerequest.shared.GaeUserServiceRequest

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.