Package org.damour.base.client.ui.buttons

Examples of org.damour.base.client.ui.buttons.ToolbarButton


    loadApplication();
  }

  public ToolbarButton buildLoginButton() {
    ToolbarButton loginLink = new ToolbarButton(getMessages().getString("login", "Login"));
    loginLink.setTitle(getMessages().getString("loginTitle", "Login or Create a New Account"));
    loginLink.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        AuthenticationHandler.getInstance().handleUserAuthentication(true);
      }
    });
    return loginLink;
View Full Code Here


    });
    return loginLink;
  }

  public ToolbarButton buildLogoutButton() {
    ToolbarButton logoutLink = new ToolbarButton(getMessages().getString("logout", "Logout"));
    logoutLink.setTitle(getMessages().getString("logout", "Logout"));
    logoutLink.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        AuthenticationHandler.getInstance().logout();
      }
    });
    return logoutLink;
View Full Code Here

  }

  public Widget buildProfileButton(boolean enabled) {

    if ("true".equals(getSettings().getString("showProfileAsButton", "false"))) {
      ToolbarButton profileButton = new ToolbarButton(getMessages().getString("profile", "Profile"), new Command() {
        public void execute() {
          // it is possible the user is 'stale', but HIGHLY unlikely
          AuthenticationHandler.getInstance().showEditAccountDialog(getAuthenticatedUser());
        }
      });
      profileButton.setEnabled(enabled);
      return profileButton;
    }

    MenuBar profileMenu = new MenuBar(true);
View Full Code Here

    menuButton.setTitle("Create, manage or join groups");
    return menuButton;
  }

  public ToolbarButton buildAdminButton() {
    final ToolbarButton adminLink = new ToolbarButton(getMessages().getString("administration", "Administration"));
    adminLink.addClickHandler(new ClickHandler() {
      public void onClick(final ClickEvent event) {
        loadAdmin(true);
      }
    });
    return adminLink;
View Full Code Here

TOP

Related Classes of org.damour.base.client.ui.buttons.ToolbarButton

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.