use of cern.gp.explorer.test.helpers.SimpleDemoBean in project ACS by ACS-Community.
the class TestTreeTableExplorer method main.
public static void main(String[] args) throws Exception {
final SimpleDemoBean bean = new SimpleDemoBean("parent");
GPNode root = NodeFactory.createNode(bean, new RecursiveChildrenListManager());
TreeTableExplorer expl = new TreeTableExplorer();
expl.setTableColumns(bean);
expl.setRootNode(root);
WindowUtils.openInMode(expl, "TestTreeTableExplorer");
if (expl.getRootNode() != root) {
System.err.println("bug:rootNode !+ getRootNode");
}
}
use of cern.gp.explorer.test.helpers.SimpleDemoBean in project ACS by ACS-Community.
the class TestTreeTableExplorerWithButtons method createExplorer.
public static TreeTableExplorer createExplorer() {
TreeTableExplorer expl = null;
try {
final SimpleDemoBean bean = new SimpleDemoBean("parent");
GPNode root = NodeFactory.createNode(bean, new RecursiveChildrenListManager());
expl = new TreeTableExplorer();
expl.setTableColumns(bean);
expl.setRootNode(root);
} catch (IntrospectionException ex) {
ex.printStackTrace();
}
return expl;
}
Aggregations