use of cern.gp.explorer.test.helpers.RecursiveChildrenListManager in project ACS by ACS-Community.
the class TestColoredListTableExplorer method createListTableExplorer.
/**
* method that creates and returns a ListTableExplorer
*/
public static ListTableExplorer createListTableExplorer() {
ListTableExplorer expl = null;
try {
expl = new ListTableExplorer();
GPNode root = NodeFactory.createNode(new Object(), new RecursiveChildrenListManager(ColoredBean.class, 1, 10));
expl.setRootNode(root);
expl.setTableColumns(new ColoredBean(), null);
} catch (Exception ex) {
ex.printStackTrace();
}
return expl;
}
use of cern.gp.explorer.test.helpers.RecursiveChildrenListManager in project ACS by ACS-Community.
the class TestMultiListExplorer method main.
public static void main(String[] args) throws Exception {
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager());
MultiListExplorer expl = new MultiListExplorer();
expl.setRootNode(root);
expl.setListCount(3);
WindowUtils.openInMode(expl, "TestMultiListExplorer");
}
use of cern.gp.explorer.test.helpers.RecursiveChildrenListManager in project ACS by ACS-Community.
the class TestTreeExplorer method createTreeExplorer.
public static TreeExplorer createTreeExplorer() {
TreeExplorer expl = null;
try {
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager());
expl = new TreeExplorer();
expl.setRootNode(root);
} catch (IntrospectionException ex) {
ex.printStackTrace();
}
return expl;
}
use of cern.gp.explorer.test.helpers.RecursiveChildrenListManager in project ACS by ACS-Community.
the class TestTreeExplorerWithButtons method createTreeExplorer.
public static TreeExplorer createTreeExplorer() {
TreeExplorer expl = null;
try {
GPNode root = NodeFactory.createNode(new SimpleDemoBean("parent"), new RecursiveChildrenListManager());
expl = new TreeExplorer();
expl.setRootNode(root);
} catch (IntrospectionException ex) {
ex.printStackTrace();
}
return expl;
}
use of cern.gp.explorer.test.helpers.RecursiveChildrenListManager 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");
}
}
Aggregations