Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.Node


        return true;
    }

    public void checkSalesforceNode() {
        setSimpleSfdcRepresentationRoot(null);
        Node originalNode = getTreeMapper().m_sourceTreeComponent.getSalesForceNode();
        if (originalNode == null) {
            return;
        }
        Node nodeInFormulaBuilderTree = findNode(originalNode.m_deName);
        if (nodeInFormulaBuilderTree != null) {
            setSimpleSfdcRepresentationRoot(nodeInFormulaBuilderTree);
        }
    }
View Full Code Here


        setEnabled(false);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        Node target = treeMapper.m_targetTreeComponent.m_highLightedNode;
        if (target.isFolder()) {
            if (target.isLoopNode() || target.isOptional()) {
                treeMapper.addOption(target);
            }
        }
    }
View Full Code Here

        setEnabled(false);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        Node target = treeMapper.m_targetTreeComponent.m_highLightedNode;
        treeMapper.doMap(target, false);
    }
View Full Code Here

            return TreeMapperIcons.CLOSED_FOLDER_NODE;
        } else {
            // We use the corresponding node from the TreeMapper's source tree, so that the
            // node icon reflects if the node is already mapped to anything or not. That
            // information is unfortunately not available in the FormulaBuilderSourceTree.
            Node nodeInSourceTree = findNodeInSourceTree(node);
            if (nodeInSourceTree != null) {
                return nodeInSourceTree.getNodeIcon();
            }
            return node.getNodeIcon();
        }
    }
View Full Code Here

        }
        if (pathFragment.equals(CROM.FLAT_TEXT_MARKER)) {
            return getFlatRoot();
        }
        String[] parts = pathFragment.split("\\.|\\$");
        Node node = findStartPoint(tree.m_root, parts[0]);
        for (int n = 1; n < parts.length && node != null; ++n) {
            node = findMatchingChild(node, parts[n]);
        }
        // TODO: If we couldn't find anything we should search for the next start point,
        // and search under that one, etc.
View Full Code Here

        // and search under that one, etc.
        return node;
    }

    private Node getFlatRoot() {
        Node root = tree.m_root;
        if (root.m_deName.equals("[]")) {
            return root;
        }
        return null;
    }
View Full Code Here

        String name = getName(root);
        if (matcher.matches(pathFragment, name)) {
            return root;
        }
        for (Node child : root.getChildren()) {
            Node startPoint = findStartPoint(child, pathFragment);
            if (startPoint != null) {
                return startPoint;
            }
        }
        return null;
View Full Code Here

     * The behavior when calling this method before this page has been
     * {@link #waitUntilFullyLoaded() fully loaded} is undefined.
     *
     */
    public void showMapping(NodePath targetPath) {
        Node node = getTreeMapper().m_targetTreeComponent.findNode_expandTreeIfNotExist(targetPath.path);
        if (node != null) {
            getTreeMapper().showFormulaBuilder(node);
        }
    }
View Full Code Here

        this.page = page;
    }

    @Override
    public void execute(String[] params) throws CommandException {
        Node sourceNode = findSourceNode(params);
        if (sourceNode != null) {
            Node targetNode = findTargetNode(params);
            if (targetNode != null) {
                if (isLeafToLeaf(sourceNode, targetNode)) {
                    addSingleMapping(sourceNode, targetNode);
                    return;
                } else if (isFolderToFolder(sourceNode, targetNode)) {
View Full Code Here

        this.page = page;
    }

    @Override
    public void execute(String[] params) throws CommandException {
        Node targetNode = findNode(params);
        if (targetNode != null) {
            removeMapping(targetNode);
        } else {
            showNoSuchNodeMessage(params[0]);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.Node

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.