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

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


  List<AbstractYuiMenuItem> getMenuItemsForGroupA()
  {
    List<AbstractYuiMenuItem> mil = new ArrayList<AbstractYuiMenuItem>();

    mil.add(new YuiMenuItem("Menu Item #1")
    {

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

          @Override
          public void onClick()
          {

          }

        };
      }

      @Override
      public MarkupContainer getSubMenu(String menuItemSubMenuId)
      {
        return null;
      }

    });

    mil.add(new YuiMenuItem("Menu Item #2")
    {

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


  protected List<AbstractYuiMenuItem> getMenuItemsForGroupB()
  {
    List<AbstractYuiMenuItem> mil = new ArrayList<AbstractYuiMenuItem>();

    mil.add(new YuiMenuItem("Menu Item B1")
    {

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

          @Override
          public void onClick()
          {

          }

        };
      }

      @Override
      public MarkupContainer getSubMenu(String menuItemSubMenuId)
      {
        return null;
      }

    });

    final YuiMenuItem mi;
    mil.add(mi = new CheckedYuiMenuItem("Menu Item B2")
    {

      @Override
      protected void onCheck(AjaxRequestTarget target)
      {

      }

      @Override
      public MarkupContainer getSubMenu(String menuItemSubMenuId)
      {
        // TODO Auto-generated method stub
        return null;
      }

    });
    mi.setChecked(true);
    return mil;

  }
View Full Code Here

TOP

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

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.