Package org.jitterbit.ui.widget.tree

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


            installDrag();
        }
    }

    private DefaultKongaTreeModel createModel(LdapStructureEntryNode node, boolean selectedAttributesOnly) {
        KongaTreeNode root = new DefaultKongaTreeNode(node.getName(), true);
        for (LdapStructureAttribute attr : getAttributesToInclude(node, selectedAttributesOnly)) {
            AttributeNode.create(root, attr);
        }
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here


    public ProjectItemTreeModelBuilder(IntegrationProject project) {
        this.project = project;
    }

    public KongaTreeModel buildModel() {
        DefaultKongaTreeNode root = new DefaultKongaTreeNode("Project Items", true);
        buildDatabaseBranch(root);
        buildFileLocationBranch(root);
        buildLdapLocationBranch(root);
        buildOperationSubTree(root);
        buildScriptSubTree(root);
View Full Code Here

        buildLocatableSubTree(parent, name, "ProjectItemTree.Help.LDAP", new LocatableFilter(DataLocationType.LDAP));
    }

    private void buildLocatableSubTree(KongaTreeNode parent, String title, String helpId, EntityFilter filter) {
        KongaTreeNode root = new DocumentedProjectItemNode(parent, title, helpId);
        KongaTreeNode sources = new DefaultKongaTreeNode(root, EntityType.Source.toString(), true);
        ItemTreeBuilder sourceTreeFactory = new ItemTreeBuilder(project, EntityType.Source);
        sourceTreeFactory.setFilter(filter);
        sourceTreeFactory.buildTree(sources);
        KongaTreeNode targets = new DefaultKongaTreeNode(root, EntityType.Target.toString(), true);
        ItemTreeBuilder targetTreeFactory = new ItemTreeBuilder(project, EntityType.Target);
        targetTreeFactory.setFilter(filter);
        targetTreeFactory.buildTree(targets);
    }
View Full Code Here

            }
        });
    }

    private static DefaultKongaTreeNode createRootNode() {
        return new DefaultKongaTreeNode("root", true);
    }
View Full Code Here

        tree.setRootVisible(false);
        return tree;
    }

    public KongaTreeModel newTreeModel(JmsMessage msg) {
        DefaultKongaTreeNode root = createRootAndHeaders();
        DefaultKongaTreeNode msgRoot = createUserDefinedPropertiesHeader(root);
        addMessageNode(msgRoot, msg);
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here

        addMessageNode(msgRoot, msg);
        return new DefaultKongaTreeModel(root);
    }

    public KongaTreeModel newTreeModel(IntegrationProject project) {
        DefaultKongaTreeNode root = createRootAndHeaders();
        DefaultKongaTreeNode msgRoot = createUserDefinedPropertiesHeader(root);
        addProjectMessageNodes(msgRoot, project);
        return new DefaultKongaTreeModel(root);
    }
View Full Code Here

        addProjectMessageNodes(msgRoot, project);
        return new DefaultKongaTreeModel(root);
    }

    private DefaultKongaTreeNode createRootAndHeaders() {
        DefaultKongaTreeNode root = new DefaultKongaTreeNode(null, "root", true); //$NON-NLS-1$
        addSystemHeaderNodes(root);
        addStandardPropertiesNodes(root);
        return root;
    }
View Full Code Here

        }

        private void addPropertyNodes(JmsMessage message) {
            MessagePropertiesDescriptor userProps = message.getUserDefinedProperties();
            if (userProps.isEmpty()) {
                new DefaultKongaTreeNode(this, PackageResources.TreeSelector.NO_PROPERTIES, false);
            } else {
                insertPropertyNodes(userProps.getProperties(), this);
            }
        }
View Full Code Here

     *            structure
     * @param ldapCache
     *            the local cache from which LDAP structure information will be read
     */
    public AttributeSelectionModel(SourceTarget st, LdapStructureServerCache ldapCache) {
        super(new DefaultKongaTreeNode("root", false));
        this.ldapCache = ldapCache;
        ldapLocation = null;
        selectedStructures = null;
        type = st;
        auxClassSelection = new AuxiliaryClassSelection(attributeContributions);
View Full Code Here

     * @param ldapCache
     *            the local cache from which LDAP structure information will be read
     */
    public AttributeSelectionModel(LdapLocation ldapLoc, SourceTarget st, SelectedObjectStructures structures,
                    LdapStructure existingLdapStructure, LdapStructureServerCache ldapCache) {
        super(new DefaultKongaTreeNode("root", true));
        ldapLocation = ldapLoc;
        selectedStructures = structures;
        this.ldapCache = ldapCache;
        type = st;
        auxClassSelection = new AuxiliaryClassSelection(attributeContributions);
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.