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"));
}