main.addComponent(new Label(
"Some test cases for trees. Events panel logs events that happen server side."));
main.addComponent(new Button("commit"));
Tree t;
t = createTestTree();
t.setCaption("Default settings");
main.addComponent(createTestBench(t));
t = createTestTree();
t.setCaption("Multiselect settings");
t.setMultiSelect(true);
main.addComponent(createTestBench(t));
t = createTestTree();
t.setCaption("Multiselect and immediate");
t.setImmediate(true);
t.setMultiSelect(true);
main.addComponent(createTestBench(t));
t = createTestTree();
t.setCaption("immediate");
t.setImmediate(true);
main.addComponent(createTestBench(t));
t = createTestTree();
t.setCaption("with actions");
t.setImmediate(true);
t.addActionHandler(this);
final AbstractOrderedLayout ol = (AbstractOrderedLayout) createTestBench(t);
al = new VerticalLayout();
al.setMargin(true);
ol.addComponent(new Panel("action log", al));
main.addComponent(ol);