Examples of KongaTreeNode


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

            ((KongaTree) support.getComponent()).autoscroll(dropLoc.getDropPoint());
            TreePath pathTarget = dropLoc.getPath();
            if (pathTarget == null) {
                return null;
            }
            KongaTreeNode targetNode = (KongaTreeNode) pathTarget.getLastPathComponent();
            return (targetNode != null) ? (DatabaseObject) targetNode.getUserObject() : null;
        }
View Full Code Here

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

            tree.expandRow(0);
        }
    }
   
    public void expandAll() {
        KongaTreeNode root = getRoot();
        if (root instanceof CromTreeNode) {
            expandAllNodesButDoNotExplode((CromTreeNode) root);
        } else {
            tree.expandAll();
        }
View Full Code Here

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

            tree.makeNodeExpanded(treeNode);
        }
    }
   
    private CromTreeNode findTreeNode(CROM crom) {
        KongaTreeNode root = getRoot();
        for (KongaTreeNode node : root.depthFirstEnumeration()) {
            if (node.getUserObject() == crom) {
                return (CromTreeNode) node;
            }
        }
        return null;
View Full Code Here

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

        }
        return null;
    }

    public void scrollNodeToVerticalCenter(CROM crom) {
        KongaTreeNode node = findTreeNode(crom);
        if (node != null) {
            tree.scrollNodeToVerticalCenter(node);
        }
    }
View Full Code Here

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

            tree.scrollNodeToVerticalCenter(node);
        }
    }
   
    public void expandNode(CROM crom) {
        KongaTreeNode node = findTreeNode(crom);
        if (node != null) {
            tree.makeNodeExpanded(node);
        }
    }
View Full Code Here

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

    /**
     * Triggers a name editor on the tree node representing the given <code>IntegrationEntity</code>.
     *
     */
    public final void renameIntegrationEntity(IntegrationEntity entity) {
        KongaTreeNode node = getNodeForEntity(entity);
        if (node != null) {
            onRenameNode(node);
        }
    }
View Full Code Here

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

    /**
     * Expands all nodes representing <code>RootFolder</code>s.
     */
    public final void expandRootFolders() {
        KongaTreeNode root = getModel().getRoot();
        for (int n = 0; n < root.getChildCount(); ++n) {
            KongaTreeNode child = root.getChildAt(n);
            if (child instanceof RootFolderNode || child instanceof JitterbitConnectNode) {
                makeNodeExpanded(child);
            }
        }
    }
View Full Code Here

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

     *
     * @see IntegrationEntityTreeModel#sortChildren(KongaTreeNode)
     *
     */
    public final void refresh(Folder f) {
        KongaTreeNode node = getNodeForEntity(f);
        if (node != null) {
            getModel().sortChildren(node);
        }
    }
View Full Code Here

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

     */
    public final void displayIntegrationEntity(IntegrationEntity entity) {
        if (entity == null) {
            return;
        }
        KongaTreeNode matchingNode = getNodeToSelectForEntity(entity);
        if (matchingNode == null) {
            return;
        }
        scrollPathToVisible(getPath(matchingNode));
        makeNodeSelected(matchingNode, false);
View Full Code Here

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

    public final void makeExpanded(Set<IntegrationEntity> entities) {
        if (entities == null || entities.isEmpty()) {
            return;
        }
        for (Enumeration<KongaTreeNode> en = getModel().getRoot().depthFirstEnumeration(); en.hasMoreElements();) {
            KongaTreeNode node = en.nextElement();
            if (entities.contains(node.getUserObject())) {
                makeNodeExpanded(node);
            }
        }
    }
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.