Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.Tree


    }

    private static JPanel initPanel() {

        final JPanel panel = new JPanel(new BorderLayout());
        final Tree tree = new Tree();

        URL fileURL = ArchivingCDMAPluginTest.class.getResource("testCouleurExpression.vc");
        File newFile = null;
        IDataset dataset = null;
        try {
            newFile = new File(fileURL.toURI());
            dataset = new VcDataset(newFile);
            dataset.open();

        } catch (IOException e1) {
            e1.printStackTrace();
        } catch (URISyntaxException e2) {
            e2.printStackTrace();
        }

        ITreeNode rootNode = new BasicTreeNode();
        constructTree(rootNode, dataset.getRootGroup());
        tree.setRootNode(rootNode);
        tree.addMouseListener(archivingListener);

        panel.add(tree, BorderLayout.CENTER);

        final JLabel label = new JLabel("Click here to loose focus");
View Full Code Here


        @Override
        public void mouseChanged(CometeMouseEvent event) {
            if (event.getClicks() > 1) {
                if (event.getSource() instanceof Tree) {
                    Tree tree = (Tree) event.getSource();
                    ITreeNode[] nodes = tree.getSelectedNodes();
                    if (nodes.length == 1) {
                        ITreeNode node = nodes[0];
                        if (node.getData() != null && !tablePanelOpen) {
                            tablePanelOpen = true;
                            openTableDialog(node.getName(), (IArray) node.getData());
View Full Code Here

    public void setRootVisible(boolean isRootVisible) {
        this.rootVisible = isRootVisible;
        ITree tree = getTree();
        if (tree instanceof Tree) {
            Tree cometeTree = (Tree) tree;
            cometeTree.setRootVisible(isRootVisible);
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swing.Tree

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.