Example usage for org.apache.wicket.util.string StringList tokenize

List of usage examples for org.apache.wicket.util.string StringList tokenize

Introduction

In this page you can find the example usage for org.apache.wicket.util.string StringList tokenize.

Prototype

public static StringList tokenize(final String string, final String delimiters) 

Source Link

Document

Extracts tokens from a delimited string.

Usage

From source file:org.wicketstuff.extjs.tree.ExtTreePanel.java

License:Apache License

protected ExtTreeNode findNode(String nodeid) {
    StringList list = StringList.tokenize(nodeid, "_");
    ExtTreeNode node = root;//from w w w  .  ja  v a 2  s  .com
    for (int i = 1; i < list.size(); i++)
        node = node.childNodes().get(Integer.valueOf(list.get(i)));

    return node;
}