Examples of YuiContextMenuBehavior


Examples of org.wicketstuff.yui.markup.html.menu2.contextMenu.YuiContextMenuBehavior

    testMenu2.add( new MenuItem( "Yellow", new ChangeColorAction( "Yellow") ));
    testMenu2.add( new MenuItem( "Green", new ChangeColorAction( "Green") ));
    testMenu2.add( new MenuItem( "Blue", new ChangeColorAction( "Blue") ));
   
   
    YuiContextMenuBehavior cmBehavior = new YuiContextMenuBehavior(testMenu1, testMenu2);
   
    WebMarkupContainer markup =new WebMarkupContainer( "panel" );
    markup.setOutputMarkupId(true);
   
    cmBehavior.applyAttributes( markup, testMenu1, new Model( "123") );
   
    subPanel = new WebMarkupContainer( "subPanel" );
    subPanel.setOutputMarkupId(true);
    cmBehavior.applyAttributes( subPanel, testMenu2, new Model( "777") );
    markup.add( subPanel );

   
    add( markup );
    markup.add( cmBehavior );
View Full Code Here

Examples of org.wicketstuff.yui.markup.html.menu2.contextMenu.YuiContextMenuBehavior

      public void onClick() {
        tree.getTreeState().collapseAll();
      }
    });
   
    cmBehavior = new YuiContextMenuBehavior(nodeMenu );
    treeContainer.add(cmBehavior);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.