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

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

Introduction

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

Prototype

public void becomeInteriorNode() 

Source Link

Document

Become an interior node.

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  ww. j  a  va  2  s.  co  m*/
        }
    };
    item.becomeInteriorNode();
    parent.addItem(item);
}