Example usage for com.google.gwt.widgetideas.client FastTree setSelectedItem

List of usage examples for com.google.gwt.widgetideas.client FastTree setSelectedItem

Introduction

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

Prototype

public void setSelectedItem(FastTreeItem item) 

Source Link

Document

Selects a specified item.

Usage

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

License:Apache License

public void store() {
    FastTree t = new FastTree();
    FastTreeItem camping = t.addItem("Camping Gear");
    camping.addItem("Camping tents");
    FastTreeItem cooking = camping.addItem("Cooking gear");
    camping.setState(true);/*from w  ww.j  ava 2  s  . c om*/

    t.setSelectedItem(cooking);

    FastTreeItem ap = t.addItem("Apparel");
    ap.addItem("Jackets");
    ap.addItem("Shirts");
    t.addItem("Footwear").becomeInteriorNode();
    t.addItem("Coolers");
    RootPanel.get().add(t);
}