Example usage for com.google.gwt.gen2.complexpanel.client FastTreeItem FastTreeItem

List of usage examples for com.google.gwt.gen2.complexpanel.client FastTreeItem FastTreeItem

Introduction

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

Prototype

public FastTreeItem(Widget widget) 

Source Link

Document

Constructs a tree item with the given Widget.

Usage

From source file:com.google.gwt.gen2.demo.fasttree.client.FastTreeDemo.java

License:Apache License

private void lazyCreateChild(final HasFastTreeItems parent, final int index, final int children) {

    final FastTreeItem item = new FastTreeItem("child" + index + " (" + children + " children)");

    item.becomeInteriorNode();//from   w  w  w.j  a v a 2 s.c  o  m
    parent.addItem(item);
}