Package org.openide.nodes

Examples of org.openide.nodes.AbstractNode


            resetExplorer();
        }
    }

    public void resetExplorer() {
        manager.setRootContext(new AbstractNode(Children.LEAF));
        ((BeanTreeView) tree).setRootVisible(false);
    }
View Full Code Here


            });
        } else {
            SwingUtilities.invokeLater(new Runnable() {

                public void run() {
                    manager.setRootContext(new AbstractNode(Children.LEAF) {

                        @Override
                        public Action[] getActions(boolean context) {
                            return new Action[0];
                        }
View Full Code Here

        } else {
            this.filterLibrary = null;
            SwingUtilities.invokeLater(new Runnable() {

                public void run() {
                    manager.setRootContext(new AbstractNode(Children.LEAF) {

                        @Override
                        public Action[] getActions(boolean context) {
                            return new Action[0];
                        }
View Full Code Here

        Children children = new Children.Array();
        children.add(new Node[] { cameraNode, projectorNode, markerNode, detectorNode,
                geometricCalibratorNode, colorCalibratorNode });

        Node root = new AbstractNode(children);
        root.setName("Settings");
        manager.setRootContext(root);
    }
View Full Code Here

        Children children = new Children.Array();
        children.add(new Node[] { cameraNode, projectorNode, objectFinderNode,
                markerDetectorNode, alignerNode, handMouseNode, virtualBallNode,
                realityAugmentorNode, trackingNode });

        Node root = new AbstractNode(children);
        root.setName("Settings");
        manager.setRootContext(root);
    }
View Full Code Here

        if (name.equals("<system>"))
            return createNode("<system>", "system");

        if (service.getApplications().get(name).isDisabled()) {
            Node node = new AbstractNode(Children.LEAF);
            node.setDisplayName(name);
            return node;
        }
               
        return createNode(name, name);
    }
View Full Code Here

    }

    Explorer(Service service) {
        this.roots = new Children.Array();
        roots.add(new Node[] { new ServiceNode(service) });
        Node root = new AbstractNode(roots);
        root.setDisplayName("Root"); // Not visible
        this.manager = new ExplorerManager();
        this.manager.setRootContext(root);
        initialize();
    }
View Full Code Here

    @Override
    public Node createNodeForKey(OObjectTypeNode key) {
        if (key != null) {
            return key;
        } else {
            return new AbstractNode(Children.LEAF);
        }
    }
View Full Code Here

    @Override
    public Node createNodeForKey(OObjectNode key) {
        if (key != null) {
            return key;
        } else {
            return new AbstractNode(Children.LEAF);
        }
    }
View Full Code Here

    public Node createNodeForKey(OConnectionNode key) {
        //DBNode nd = new DBNode(key.toString());
        if (key != null) {
            return key;
        } else {
            return new AbstractNode(Children.LEAF);
        }
    }
View Full Code Here

TOP

Related Classes of org.openide.nodes.AbstractNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.