Package org.sgx.yuigwt.yuigallery.yui_treeview

Examples of org.sgx.yuigwt.yuigallery.yui_treeview.TreeView


  JsArray<TreeLeafConfig> leafs1 = JsArray.createArray().cast();  
  for (int i = 0; i < moduleInfo.length(); i++) {
    JsObject module = moduleInfo.get(i);
    leafs1.push(buildLeaf(module));
  }
  TreeView treeView1 = Y.newTreeView(TreeLeafConfig.create().collapsed(false)
    .label("Yui Modules metainformation").children(leafs1).id("tree1"));    
  Node treeViewParentNode = Y.one(parent.getDOMNode());
  treeView1.collapsed(false);
  treeView1.render(treeViewParentNode);
  treeViewParentNode.setStyles(Style.create().overflow("scroll"));  
}
View Full Code Here


  public void ready(YuiContext Y_) {   
   
    //cast to YuiGalleryContext for using the yui gallery java api.
    final YuiGalleryContext Y = Y_.cast();
   
    TreeView treeView1 = Y.newTreeView(TreeLeafConfig.create().label("haha").children(
      TreeLeafConfig.create().label("haha1").id("child1"),
      TreeLeafConfig.create().label("haha2").id("child2")
    ).id("tree1"));    
   
    //we need to "re-node" the parent to the new sandbox - this is not a bug
    Node treeViewParentNode = Y.one(parent.getDOMNode());
    treeView1.render(treeViewParentNode);
  }
});
}
View Full Code Here

TOP

Related Classes of org.sgx.yuigwt.yuigallery.yui_treeview.TreeView

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.