Examples of KongaTreeModel


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

    public void requestFocus() {
        tree.requestFocusInWindow();
    }

    private KongaTree createTree(EntityCollectionValidationResult result) {
        KongaTreeModel model = createTreeModel(result);
        KongaTree tree = new KongaTree(model);
        tree.setRowHeight(0);
        customizeTree(tree);
        return tree;
    }
View Full Code Here

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

        s.setNodeObjectConverter(new UserObjectNodeObjectConverter());
        return s;
    }
   
    public void update(List<TableRelationship> relationships) {
        KongaTreeModel newModel = modelBuilder.build(relationships);
        tree.setModel(newModel);
        tree.expandAll();
    }
View Full Code Here

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

        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);
            tree.setCellRenderer(new Renderer(result.getMainXsd()));
            tree.setRootVisible(true);
            tree.expandAll();
        }
View Full Code Here

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

    private boolean isDeployDirty() {
        if (project == null) {
            return false;
        }
        if (rootFolder == null) {
            KongaTreeModel treeModel = tree.getModel();
            KongaTreeNode root = treeModel.getRoot();
            int childCount = treeModel.getChildCount(root);
            for (int n = 0; n < childCount; ++n) {
                KongaTreeNode child = (KongaTreeNode) treeModel.getChild(root, n);
                Object childObject = child.getUserObject();
                if (childObject instanceof RootFolder && ((RootFolder) childObject).isDeployDirty()) {
                    return true;
                }
            }
View Full Code Here

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

            setSelected(true);
        }
    }

    private boolean isEmpty() {
        KongaTreeModel model = tree.getModel();
        KongaTreeNode root = model.getRoot();
        return model.getChildCount(root) == 0;
    }
View Full Code Here

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

        public Tree() {
            tree = createTree();
        }

        private KongaTree createTree() {
            KongaTreeModel model = createModel();
            KongaTree tree = new KongaTree(model);
            tree.setRootVisible(false);
            tree.setShowsRootHandles(true);
            tree.setVisibleRowCount(5);
            tree.setCellRenderer(new Renderer());
View Full Code Here

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

    public Set<AppliedPipelinePlugin> getPlugins() {
        return modelBuilder.getPlugins();
    }

    public void refresh() {
        final KongaTreeModel model = modelBuilder.buildNewModel();
        UiUtils.runOnEventThread(new Runnable() {

            @Override
            public void run() {
                tree.setModel(model);
View Full Code Here

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

        }
        putValue(SMALL_ICON, mode.getIcon());
    }

    private boolean isSomethingExpanded() {
        KongaTreeModel model = tree.getModel();
        Object root = model.getRoot();
        if (useRootChildren) {
            int childCount = model.getChildCount(root);
            for (int n = 0; n < childCount; ++n) {
                Object child = model.getChild(root, n);
                if (isSomethingExpanded(model, child)) {
                    return true;
                }
            }
        } else {
View Full Code Here

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

    public void setNodeOrder(Comparator<IntegrationEntityTreeNode> order) {
        modelFactory.setNodeOrder(order);
    }
   
    private KongaTree newTreeImpl(List<? extends IntegrationEntity> entities, KongaTreeNode root, boolean showRoot) {
        KongaTreeModel model = modelFactory.newModel(entities, root);
        KongaTree tree = new KongaTree(model);
        tree.setCellRenderer(new IntegrationEntityTreeRenderer());
        tree.expandAll();
        tree.setRootVisible(showRoot);
        return tree;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.