use of cern.gp.explorer.test.helpers.SimpleDemoBean in project ACS by ACS-Community.
the class TestListExplorer method main.
public static void main(String[] args) throws Exception {
int numberOfBeans = 6;
// create the beans you want to display
SimpleDemoBean[] beans = new SimpleDemoBean[numberOfBeans];
for (int ix = 0; ix < numberOfBeans; ix++) {
beans[ix] = new SimpleDemoBean("bean_" + ix);
}
// create nodes associated with the beans
GPNode[] nodes = NodeFactory.createNode(beans);
// create the explorer and set the columns it shall display
ListExplorer expl = new ListExplorer(nodes);
// open the explorer in a NetBeans "Mode"
WindowUtils.openInMode(expl, "TestListExplorer");
expl.requestFocus();
}
use of cern.gp.explorer.test.helpers.SimpleDemoBean in project ACS by ACS-Community.
the class TestListTableExplorer method main.
public static void main(String[] args) throws Exception {
int numberOfBeans = 6;
// create the beans you want to display
SimpleDemoBean[] beans = new SimpleDemoBean[numberOfBeans];
for (int ix = 0; ix < numberOfBeans; ix++) {
beans[ix] = new SimpleDemoBean("bean_" + ix);
}
// create nodes associated with the beans
GPNode[] nodes = NodeFactory.createNode(beans);
// create the explorer and set the columns it shall display
ListTableExplorer expl = new ListTableExplorer(nodes);
expl.setTableColumns(new String[] { "name", "value" });
// open the explorer in a NetBeans "Mode"
WindowUtils.openInMode(expl, "TestListTableExplorer");
expl.requestFocus();
}
use of cern.gp.explorer.test.helpers.SimpleDemoBean 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.SimpleDemoBean 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.SimpleDemoBean 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;
}
Aggregations