Search in sources :

Example 1 with Tree

use of org.eclipse.nebula.widgets.nattable.columnCategories.Tree in project nebula.widgets.nattable by eclipse.

the class TreeTest method setup.

@Before
public void setup() {
    this.tree = new Tree();
    Node root = newNode("R");
    this.tree.setRootElement(root);
    root.addChild(newNode("a"));
    Node b = newNode("b");
    root.addChild(b);
    b.addChild(newNode("b1"));
    b.addChild(newNode("b2"));
    Node b3 = newNode("b3");
    b.addChild(b3);
    b3.addChild(newNode("b3a"));
    b3.addChild(newNode("b3b"));
    root.addChild(newNode("c"));
}
Also used : Node(org.eclipse.nebula.widgets.nattable.columnCategories.Node) Tree(org.eclipse.nebula.widgets.nattable.columnCategories.Tree) Before(org.junit.Before)

Aggregations

Node (org.eclipse.nebula.widgets.nattable.columnCategories.Node)1 Tree (org.eclipse.nebula.widgets.nattable.columnCategories.Tree)1 Before (org.junit.Before)1