예제 #1
0
  /** Finalizes the <tt>User</tt> Logout operation. */
  protected void onSuccessfullLogout() {

    Window.Location.replace(GWT.getModuleBaseURL() + "OpenXDataServerAdmin.html");

    loginView.clearPassword();
    Context.setAuthenticatedUser(null);

    Window.Location.reload();
  }
예제 #2
0
  private void applyLogin(String name, JSONObject json) {
    JSONObject jsonObj = JSONHelper.getObject(json, "data");
    boolean found = JSONHelper.getPrimitiveBoolean(jsonObj, "found", false);
    if (!found) {
      Window.alert("Пользователь " + GWTUtils.safeString(name) + " не найден!");
    } else {
      elName.setValue("");
      setCurrentUser(name);

      Window.Location.reload();
    }
  }
 @Override
 public void killApp() {
   Window.Location.reload();
 }
 @UiHandler("reload")
 void onReload(ClickEvent event) {
   Window.Location.reload();
 }