Example usage for com.google.gwt.user.client.ui TreeItem getChild

List of usage examples for com.google.gwt.user.client.ui TreeItem getChild

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui TreeItem getChild.

Prototype

public TreeItem getChild(int index) 

Source Link

Document

Gets the child at the specified index.

Usage

From source file:org.unitime.timetable.gwt.client.page.UniTimeMobileMenu.java

License:Apache License

private void openNodes(Set<String> nodes, TreeItem item, String prefix) {
    if (nodes.contains((prefix == null ? "" : prefix + " ") + item.getText()))
        item.setState(true);/*  w  w w .ja v  a 2 s.  c o  m*/
    for (int i = 0; i < item.getChildCount(); i++)
        openNodes(nodes, item.getChild(i), (prefix == null ? "" : prefix + " ") + item.getText());
}