Examples of KongaTreeNode


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

        tree.setModel(model);
        setInitialSelectionState();
    }
   
    private void setInitialSelectionState() {
        KongaTreeNode root = tree.getModel().getRoot();
        for (KongaTreeNode child : root.children()) {
            tree.makeNodeExpanded(child);
        }
    }
View Full Code Here

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

        return entryNode;
    }

    public LdapStructureAttribute[] getAllAttributes() {
        List<LdapStructureAttribute> attrs = new ArrayList<LdapStructureAttribute>();
        KongaTreeNode root = treeModel.getRoot();
        for (int n = 0, size = root.getChildCount(); n < size; ++n) {
            attrs.add(((AttributeNode) root.getChildAt(n)).getUserObject());
        }
        return attrs.toArray(new LdapStructureAttribute[attrs.size()]);
    }
View Full Code Here

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

            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

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

     *         attributes, or if the attributes are still not known.
     */
    public AttributeSelectionNode[] getRequiredAttributes() {
        List<AttributeSelectionNode> required = Lists.newArrayList();
        for (int n = 0, count = getChildCount(); n < count; ++n) {
            KongaTreeNode child = getChildAt(n);
            if (child instanceof AttributeSelectionNode) {
                AttributeSelectionNode attr = (AttributeSelectionNode) child;
                if (attr.isRequired()) {
                    required.add(attr);
                }
View Full Code Here

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

   
    private String getSelectionCountString() {
        int attributes = 0;
        int selected = 0;
        for (int n = 0, count = getChildCount(); n < count; ++n) {
            KongaTreeNode child = getChildAt(n);
            if (child instanceof AttributeSelectionNode) {
                ++attributes;
                if (((AttributeSelectionNode) child).isSelected()) {
                    ++selected;
                }
View Full Code Here

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

        String name = Strings.get("ProjectItemTree.LDAP");
        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

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

    }

    private void buildOperationSubTree(KongaTreeNode parent) {
        ItemTreeBuilder factory = new ItemTreeBuilder(project, EntityType.Operation);
        factory.setFilter(new RunOperationFilter());
        KongaTreeNode root = new DocumentedProjectItemNode(parent, EntityType.Operation.getPlural(),
                        "ProjectItemTree.Help.Operations");
        factory.buildTree(root);
    }
View Full Code Here

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

        factory.buildTree(root);
    }

    private void buildScriptSubTree(KongaTreeNode parent) {
        ItemTreeBuilder factory = new ItemTreeBuilder(project, EntityType.Script);
        KongaTreeNode root = new DocumentedProjectItemNode(parent, EntityType.Script.getPlural(),
                        "ProjectItemTree.Help.Scripts");
        factory.buildTree(root);
    }
View Full Code Here

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

        factory.buildTree(root);
    }

    private void buildEmailMessageSubTree(KongaTreeNode parent) {
        ItemTreeBuilder factory = new ItemTreeBuilder(project, EntityType.EmailMessage);
        KongaTreeNode root = new DocumentedProjectItemNode(parent, EntityType.EmailMessage.getPlural(),
                        "ProjectItemTree.Help.EmailMessages");
        factory.buildTree(root);
    }
View Full Code Here

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

        ctrl.install(tree);
        return tree;
    }

    private KongaTreeModel createModel(GlobalDataElements deStore) {
        KongaTreeNode root = createRootNode();
        if (deStore != null) {
            addProjectVariableNodes(root);
        }
        if (includeBuiltInDataElements) {
            addDataElementNodes(new JitterbitVariablesNode(root), BuiltInDataElements.getBuiltInDataElements());
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.