List of usage examples for com.google.gwt.widgetideas.client FastTreeItem FastTreeItem
FastTreeItem(Element element)
From source file:com.google.gwt.demos.fasttree.client.FastTreeDemo.java
License:Apache License
private void lazyCreateChild(final HasFastTreeItems parent, final int index, final int children) { FastTreeItem item = new FastTreeItem("child" + index + " (" + children + " children)") { public void ensureChildren() { for (int i = 0; i < children; i++) { lazyCreateChild(this, i, children + (i * 10)); }/*from w w w . ja va 2s . c o m*/ } }; item.becomeInteriorNode(); parent.addItem(item); }