Example usage for com.google.gwt.widgetideas.client FastTreeItem FastTreeItem

List of usage examples for com.google.gwt.widgetideas.client FastTreeItem FastTreeItem

Introduction

In this page you can find the example usage for com.google.gwt.widgetideas.client FastTreeItem FastTreeItem.

Prototype

FastTreeItem(Element element) 

Source Link

Document

This constructor is only for use by DecoratedFastTreeItem .

Usage

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