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

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

Introduction

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

Prototype

public void setText(String text) 

Source Link

Usage

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

License:Apache License

private void verboseTreeItem(HasFastTreeItems parent, int children) {
    for (int i = 0; i < children; i++) {
        final int index = i;

        FastTreeItem item = new FastTreeItem();
        item.setText("item " + index);
        parent.addItem(item);/*w  w  w.j a  va  2  s  .  c om*/
        verboseTreeItem(item, children - (i + 1));
    }
}