Package com.tensegrity.wpalo.client.ui.widgets

Examples of com.tensegrity.wpalo.client.ui.widgets.OnClickListener


    ((WPalo) Registry.get(WPalo.ID)).show(viewport);
  }
   
  private final void fillViewPanelStatusLine() {   
    Hyperlink logout = new Hyperlink("Logout");
    logout.addListener(new OnClickListener() {
      public void clicked(ComponentEvent ce) {
        logout();
      }
    });
    viewpanelStatusLine.add(logout);
   
    if (user.isAdmin()) {
      Hyperlink viewMode = new Hyperlink("Admin Mode");
      viewMode.addListener(new OnClickListener(){
        public void clicked(ComponentEvent ce) {
          openAdminMode();
        }
      });
      viewpanelStatusLine.add(viewMode);
View Full Code Here


  }

 
  private final void fillViewPanelStatusLine() {   
    Hyperlink logout = new Hyperlink(constants.logout());
    logout.addListener(new OnClickListener() {
      public void clicked(ComponentEvent ce) {
        Dispatcher.forwardEvent(WPaloEvent.LOGOUT_CLICKED);
      }
    });
    viewpanelStatusLine.add(logout);
View Full Code Here

  private final void fillEditorPanelStatusLine() {
    // FOR TESTING PURPOSE ONLY
    if (!true) {
      Hyperlink showViewEditor = new Hyperlink("View Editor");
      showViewEditor.addListener(new OnClickListener() {
        public void clicked(ComponentEvent ce) {
          showViewEditor();
        }
      });
      editorpanelStatusLine.add(showViewEditor);
View Full Code Here

TOP

Related Classes of com.tensegrity.wpalo.client.ui.widgets.OnClickListener

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.