Search in sources :

Example 1 with ListExplorer

use of cern.gp.explorer.ListExplorer 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();
}
Also used : SimpleDemoBean(cern.gp.explorer.test.helpers.SimpleDemoBean) ListExplorer(cern.gp.explorer.ListExplorer) GPNode(cern.gp.nodes.GPNode)

Aggregations

ListExplorer (cern.gp.explorer.ListExplorer)1 SimpleDemoBean (cern.gp.explorer.test.helpers.SimpleDemoBean)1 GPNode (cern.gp.nodes.GPNode)1