Package com.smartgwt.client.widgets.menu

Examples of com.smartgwt.client.widgets.menu.MenuButton


          SC.say("You Selected '" + clicked.getTitle() + "'.");
        }
      }
    });

    return new MenuButton("Show Menu", menu);
  }
View Full Code Here


    addMember( this.deleteButton = UIFactory.createToolbarButton( ActionRegistry.DELETE_MESSAGES, false ) );
    addMember( this.printButton = UIFactory.createToolbarButton( ActionRegistry.PRINT_MESSAGE, false ) );

    addMember( new ToolStripSeparator() );

    this.markMenuButton = new MenuButton( TextProvider.get().toolbar_manager_mark() );
    this.markMenuButton.setBorder( "0px" );
    this.markMenuButton.setHeight( 20 );
    Menu markMenu = new Menu();
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_READ ) );
    markMenu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNREAD ) );
View Full Code Here

   * @param action
   * @return
   */
  public static MenuButton createMenuButton( final IGWTAction action ) {

    MenuButton button = new MenuButton( action.getText() );
    button.setIconOrientation( "" );
    button.setBorder( "0px" );
    if ( action.getIcon() != null ) {
      button.setIcon( action.getIcon() );
    }
    button.addClickHandler( new ClickHandler() {

      public void onClick( ClickEvent event ) {

        action.execute();
      }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.menu.MenuButton

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.