Package org.jitterbit.integration.uidelegate.entity.tree

Examples of org.jitterbit.integration.uidelegate.entity.tree.IntegrationEntityTreeNode


                                                    ListMultimap<ScheduleId, Operation> scheduleBag) {
        for (Enumeration<KongaTreeNode> en = scheduleRoot.breadthFirstEnumeration(); en.hasMoreElements(); ) {
            KongaTreeNode node = en.nextElement();
            Object nodeObject = node.getUserObject();
            if (nodeObject instanceof Schedule) {
                IntegrationEntityTreeNode scheduleNode = (IntegrationEntityTreeNode) node;
                Schedule schedule = (Schedule) nodeObject;
                List<? extends Operation> ops = scheduleBag.get(schedule.getID());
                Collections.sort(ops, BY_NAME);
                for (Operation op : ops) {
                    scheduleNode.setAllowsChildren(true);
                    IntegrationEntityTreeNode opNode = op.getExtensionObject(IntegrationEntityTreeNode.class);
                    scheduleNode.addChild(opNode);
                }
            }
        }
    }
View Full Code Here


    private static class SelectionConverter extends NodeObjectConverter.Adapter {

        @Override
        public Object toObject(TreeNode node) {
            if (node instanceof IntegrationEntityTreeNode) {
                IntegrationEntityTreeNode entityNode = (IntegrationEntityTreeNode) node;
                IntegrationEntity entity = entityNode.getUserObject();
                switch (entity.getEntityType()) {
                case Operation: {
                    return handleOperationNode(entityNode, entity);
                }
                case Schedule: {
View Full Code Here

        return items;
    }

    private void addMenuItems(List<JMenuItem> collector, KongaTreeNode node, Listener lst) {
        for (KongaTreeNode childNode : node.children()) {
            IntegrationEntityTreeNode child = (IntegrationEntityTreeNode) childNode;
            IntegrationEntity entity = child.getUserObject();
            if (entity instanceof Folder) {
                addFolder(collector, child, entity, lst);
            } else {
                addEntity(collector, lst, child, entity);
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.uidelegate.entity.tree.IntegrationEntityTreeNode

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.