Search in sources :

Example 6 with GPNode

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

Example 7 with GPNode

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

Example 8 with GPNode

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

Example 9 with GPNode

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

Example 10 with GPNode

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

Aggregations

GPNode (cern.gp.nodes.GPNode)11 SimpleDemoBean (cern.gp.explorer.test.helpers.SimpleDemoBean)7 RecursiveChildrenListManager (cern.gp.explorer.test.helpers.RecursiveChildrenListManager)6 IntrospectionException (java.beans.IntrospectionException)3 ListTableExplorer (cern.gp.explorer.ListTableExplorer)2 TreeExplorer (cern.gp.explorer.TreeExplorer)2 TreeTableExplorer (cern.gp.explorer.TreeTableExplorer)2 ListExplorer (cern.gp.explorer.ListExplorer)1 MultiListExplorer (cern.gp.explorer.MultiListExplorer)1 ColoredBean (cern.gp.explorer.test.helpers.ColoredBean)1 NodeCollection (cern.gp.nodes.children.NodeCollection)1 NodeList (cern.gp.nodes.children.NodeList)1 NodeMap (cern.gp.nodes.children.NodeMap)1 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 Node (org.openide.nodes.Node)1 Property (org.openide.nodes.Node.Property)1 PropertySet (org.openide.nodes.Node.PropertySet)1