Package org.jitterbit.integration.client.ui.entity.tree

Examples of org.jitterbit.integration.client.ui.entity.tree.ProjectTreeFragmentCreator$FolderContentSorter


            new JmsMessageNodeWithProperties(parent, msg);
        }
    }

    private void addProjectMessageNodes(DefaultKongaTreeNode parent, IntegrationProject project) {
        ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project) {

            @Override
            protected IntegrationEntityTreeNode createEntityNode(IntegrationEntity entity, KongaTreeNode parent) {
                assert (entity instanceof JmsMessage);
                return new JmsMessageNodeWithProperties(parent, (JmsMessage) entity);
            }
        };
        c.createFragment(parent, EntityType.JmsMessage);
    }
View Full Code Here


     * @param type
     *      the <code>EntityType</code> of the items to collect
     */
    public ItemTreeBuilder(IntegrationProject project, EntityType type) {
        this.type = type;
        this.factory = new ProjectTreeFragmentCreator(project);
        factory.setRemoveEmptyFolders(true);
    }
View Full Code Here

        return projectNodes;
    }

    private ProjectNode createProjectTree(IntegrationProject p) {
        p.refreshItemLookup();
        ProjectTreeFragmentCreator branchCreator = new ProjectTreeFragmentCreator(p);
        ProjectNode projectNode = new ProjectNode(p);
        RootFolderNode operationRoot = insertOperations(p, branchCreator, projectNode);
        RootFolderNode scheduleRoot = insertSchedules(p, branchCreator, projectNode);
        ListMultimap<ScheduleId, Operation> scheduleBag = ArrayListMultimap.create();
        insertScheduleNodesUnderOperations(p, operationRoot, scheduleBag);
View Full Code Here

        }
        return pm;
    }

    private List<JMenuItem> buildMenu(Receiver<T> callback) {
        ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project);
        RootFolder folder = project.getRootFolder(type);
        KongaTreeNode root = new RootFolderNode(folder);
        c.createFragment(root, type);
        List<JMenuItem> items = Lists.newArrayList();
        if (root.getChildCount() > 0) {
            addMenuItems(items, root, new Listener(callback));
        } else {
            items.add(createEmptyItem());
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.entity.tree.ProjectTreeFragmentCreator$FolderContentSorter

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.