Package org.wicketstuff.yui.markup.html.menu

Examples of org.wicketstuff.yui.markup.html.menu.YuiMenuBarItem


  }

  private List<AbstractYuiMenuItem> getMenuBarItems()
  {
    List<AbstractYuiMenuItem> menuBarItems = new ArrayList<AbstractYuiMenuItem>();
    menuBarItems.add(new YuiMenuBarItem("MenuBarItem#1")
    {

      @Override
      public AbstractLink getLink(String menuItemLinkId)
      {
        return new Link(menuItemLinkId)
        {

          @Override
          public void onClick()
          {

          }

        };
      }

      @Override
      public MarkupContainer getSubMenu(String menuItemSubMenuId)
      {
        YuiMenuGroupListModel ymglm = new YuiMenuGroupListModel()
        {

          @Override
          protected List<YuiMenuGroup> getMenuGroupList()
          {
            return MenuPage.this.getMenuGroupA();
          }

        };

        return new YuiSubMenu(menuItemSubMenuId, ymglm)
        {
          @Override
          protected String getMenuElementId()
          {
            return "submenuA";
          }
        };
      }

    });

    menuBarItems.add(new YuiMenuBarItem("MenuBarItem#2")
    {

      @Override
      public AbstractLink getLink(String menuItemLinkId)
      {
View Full Code Here

TOP

Related Classes of org.wicketstuff.yui.markup.html.menu.YuiMenuBarItem

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.