Package org.sgx.yuigwt.yui.node

Examples of org.sgx.yuigwt.yui.node.NodeList$NodeListIterator


    }

    // else if (n.hasClass(CLASS_BUTTON)) {
    else if (yuiWidget != null && yuiWidget.equals("button")) {
      Element e = n.getDOMNode();
      NodeList prevChildren = n.children();
     
      String prevId = n.get("id");
      String prevClass = e.getClassName();
     
      WidgetConfig config = ButtonConfig.create().srcNode(n);
      config = y.merge(config, nodeConfig).cast();
      w = y.newButton(config).render();
      e = w.contentBox().getDOMNode();
     
      //fix - re set previous id and class attributes - http://jsfiddle.net/cancerbero_sgx/MPc4g/3/
      e.setClassName(e.getClassName()+" "+prevClass);
      y.one(e).prepend(prevChildren);
      n.set("id", prevId);
    }
   
    else if (yuiWidget != null && yuiWidget.equals("togglebutton")) {
      Element e = n.getDOMNode();
      NodeList prevChildren = n.children();
     
      String prevId = n.get("id");
      String prevClass = e.getClassName();
     
      WidgetConfig config = ButtonConfig.create().srcNode(n);
View Full Code Here


  }

  @Override
  public void yuiBinded() {
    if(userName!=null) {
      NodeList names = y.all(".userName123");
      names.set("text", userName);
    }
  }
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yui.node.NodeList$NodeListIterator

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.