Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.NodeBase


     
      parent.append("<p>and now the vertical menu...</p>");
     
      //now create another menu but vertical
     
      NodeBase vMenuParent = parent.appendChild(YUIUtil.NODE(Y, "tag: 'div'", "width: '80px'"));
      parent.append(vMenuParent);
      Node menu2 = YUIUtil.makeMenu(Y, false, new Node[]{
        YUIUtil.makeMenuItem(Y, "YAHOO", new Node[]{
          YUIUtil.makeMenuItem(Y, "Search..."),
          YUIUtil.makeMenuItem(Y, "Mail..."),         
          YUIUtil.makeMenuItem(Y, "News", new Node[]{
            YUIUtil.makeMenuItem(Y, "London 2012", null),
            YUIUtil.makeMenuItem(Y, "Uruguay football champion", null)
          }),
          YUIUtil.makeMenuItem(Y, "Other"),
        }),
       
        YUIUtil.makeMenuItem(Y, "Google", new Node[]{
          YUIUtil.makeMenuItem(Y, "News", null),
          YUIUtil.makeMenuItem(Y, "Docs")
        })         
      });
      vMenuParent.append(menu2);
      menu2.plug(Y.Plugin().NodeMenuNav());
     
      for(Node n : new Node[]{menu1, menu2}) {
        n. delegate("click", new NodeEventDelegateCallback() {         
          @Override
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.node.NodeBase

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.