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();
}