Package org.jitterbit.ui.widget.tree

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


        tree.setSelectionMode(KongaTree.SelectionMode.SINGLE_TREE_SELECTION);
        return tree;
    }

    private KongaTreeModel createModel() {
        DefaultKongaTreeNode root = new DefaultKongaTreeNode("Functions", true);
        for (FunctionCategory cat : FunctionRegistry.getRegistry().getCategories()) {
            CategoryNode folder = new CategoryNode(null, cat);
            for (Function fcn : cat.getFunctions()) {
                boolean hasWizard = FunctionRegistry.getRegistry().hasWizard(fcn);
                new FunctionNode(folder, fcn, hasWizard);
            }
            if (folder.getChildCount() > 0) {
                root.addChild(folder);
            }
        }
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here


    }
   
    private KongaTreeNode createRoot() {
        ServerInfo server = provider.getCurrentServer();
        if (server != null) {
            return new DefaultKongaTreeNode("Plugins @ " + server.getName(), true);
        } else {
            return new DefaultKongaTreeNode("Connect to a server to see available plugins", false);
        }
    }
View Full Code Here

    private void addPlugins(KongaTreeNode root) {
        for (PipelinePluginManifest plugin : provider.getAvailablePlugins()) {
            new PluginTreeNode(root, plugin);
        }
        if (root.getChildCount() == 0) {
            root.addChild(new DefaultKongaTreeNode("[No plugins available]", false));
        }
    }
View Full Code Here

    public void removeSelectionListener(SelectionListener lst) {
        selectionSource.removeSelectionListener(lst);
    }

    private KongaTree createTree() {
        KongaTreeModel model = new DefaultKongaTreeModel(new DefaultKongaTreeNode("Projects", true));
        KongaTree tree = new KongaTree(model);
        tree.setCellRenderer(new TreeNodeDecorRenderer());
        tree.setRootVisible(false);
        tree.setShowsRootHandles(true);
        tree.setSelectionMode(SelectionMode.SINGLE_TREE_SELECTION);
View Full Code Here

                }
            });
        }

        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

    DefaultKongaTreeModel getModel() {
        return model;
    }

    private KongaTreeNode createRoot() {
        DefaultKongaTreeNode root = new DefaultKongaTreeNode(PackageResources.Nodes.ROOT_NAME, true);
        populateRootNode(root);
        return root;
    }
View Full Code Here

    }

    private KongaTreeModel createTreeModel(EntityCollectionValidationResult result) {
        IntegrationEntity[] entities = result.getValidatedEntities();
        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

                               IntegrationEntity entity,
                               DefaultKongaTreeNode parent) {
        ValidationResult r = result.getValidationResult(entity);
        if (!r.isEmpty()) {
            EntityNodeObject o = new EntityNodeObject(entity, r.status());
            DefaultKongaTreeNode node = new DefaultKongaTreeNode(parent, o, true);
            for (ValidationMessage msg : r.allMessages()) {
                addValidationMessage(msg, node);
            }
        }
    }
View Full Code Here

            }
        }
    }

    private void addValidationMessage(ValidationMessage msg, DefaultKongaTreeNode parent) {
        new DefaultKongaTreeNode(parent, msg, false);
    }
View Full Code Here

final class PrimaryKeyTreeDefinerModel extends DefaultKongaTreeModel {

    private final Map<DatabaseObject, TableNode> tableNodes;

    private PrimaryKeyTreeDefinerModel() {
        super(new DefaultKongaTreeNode("Tables/Views", true));
        tableNodes = Maps.newHashMap();
    }
View Full Code Here

TOP

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

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.