Package org.jitterbit.ui.widget.tree

Examples of org.jitterbit.ui.widget.tree.DefaultKongaTreeModel


            });
        }

        private void createModel() {
            KongaTreeNode root = new DefaultKongaTreeNode("Recent Projects", true);
            model = new DefaultKongaTreeModel(root);
            Collections.sort(projectNodes, ProjectNodeComparator.LAST_ACCESSED_ORDER);
            for (ProjectNode node : projectNodes) {
                model.insertNode(node, root);
            }
        }
View Full Code Here


    LogTreeModelFactory(LogFileRepository repository) {
        this.repository = repository;
        sessionDayFormat = new SimpleDateFormat("yyyy-MM-dd");
        root = createRoot();
        model = new DefaultKongaTreeModel(root);
    }
View Full Code Here

            collapsePath(parent);
        }
    }

    private static KongaTreeModel createModel(Element root) {
        return new DefaultKongaTreeModel(createTreeNode(root, null));
    }
View Full Code Here

        Arrays.sort(entities, new EntityTypeAndNameSorter());
        DefaultKongaTreeNode root = new DefaultKongaTreeNode("Validation", true); //$NON-NLS-1$
        for (IntegrationEntity entity : entities) {
            addEntityNode(result, entity, root);
        }
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here

        }

        public KongaTreeModel build(List<TableRelationship> relationships) {
            createNodes(relationships);
            KongaTreeNode root = createRoot();
            return new DefaultKongaTreeModel(root);
        }
View Full Code Here

            setCromTree(cromTree);
        }
    }

    private KongaTree createEmptyTree() {
        KongaTree tree = new KongaTree(new DefaultKongaTreeModel(new DefaultKongaTreeNode("root", true)));
        tree.setRootVisible(false);
        tree.addTreeWillExpandListener(new NodeExpansionHandler());
        tree.setCellRenderer(new Renderer(disabledNodes));
        return tree;
    }
View Full Code Here

    private DefaultKongaTreeNode getRoot() {
        return (DefaultKongaTreeNode) tree.getModel().getRoot();
    }

    private void fireNodeStructureChanged(DefaultKongaTreeNode root) {
        DefaultKongaTreeModel model = (DefaultKongaTreeModel) tree.getModel();
        model.fireTreeStructureChanged(tree.getModel(), model.getPath(root));
    }
View Full Code Here

        tree.addMouseListener(new PopupTrigger(copyPathAction));
    }

    public void displayResult(CreateXsdResult result) {
        if (result == null) {
            KongaTreeModel model = new DefaultKongaTreeModel(new DefaultKongaTreeNode("root", false));
            tree.setModel(model);
            tree.setRootVisible(false);
        } else {
            KongaTreeModel model = createTreeModel(result);
            tree.setModel(model);
View Full Code Here

        List<File> additional = Lists.newArrayList(xsds.getAdditionalXsds());
        Collections.sort(additional);
        for (File f : additional) {
            root.addChild(new FileNode(f));
        }
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here

    }

    public DefaultKongaTreeModel buildModel(CROM root) {
        CromTreeNode rootNode = new CromTreeNode(null, root);
        buildTree(root, rootNode);
        return new DefaultKongaTreeModel(rootNode);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.tree.DefaultKongaTreeModel

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.