Package org.jitterbit.ui.widget.tree

Examples of org.jitterbit.ui.widget.tree.KongaTreeNode.sortChildren()


    public static IntegrationEntityTreeModel createTreeModel(IntegrationProject project, EntityType type) {
        ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project);
        RootFolder folder = project.getRootFolder(type);
        KongaTreeNode root = new RootFolderNode(folder);
        c.createFragment(root, type);
        root.sortChildren();
        return new IntegrationEntityTreeModel(root);
    }

    private static final Comparator<IntegrationEntity> FOLDER_CONTENT_ORDER = new FolderContentSorter();
View Full Code Here


        KongaTreeNode folderNode = createFolderNode(childFolder, parent);
        createFolderContent(folderNode, childFolder);
        if (removeEmptyFolders && folderNode.getChildCount() == 0) {
            parent.remove(folderNode);
        }
        folderNode.sortChildren();
    }
    private IntegrationEntityTreeNode createFolderNode(Folder folder, KongaTreeNode parent) {
        return createEntityNodeDefaultImpl(folder, parent);
    }
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.