Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.EntityTypeAndNameSorter


        public Question(Collection<IntegrationEntity> orphans) {
            list = createList(orphans);
        }

        private IntegrationEntityList createList(Collection<IntegrationEntity> orphans) {
            KList<IntegrationEntity> sortedOrphans = KList.fromItems(orphans).sort(new EntityTypeAndNameSorter());
            return new IntegrationEntityList(sortedOrphans);
        }
View Full Code Here


            return model;
        }

        private Collection<? extends IntegrationEntity> getEntitiesToDisplay() {
            KList<? extends IntegrationEntity> entities = dependencies.getDependantObjects();
            entities.sort(new EntityTypeAndNameSorter());
            return new LinkedHashSet<IntegrationEntity>(entities);
        }
View Full Code Here

                    PluginKey key = new PluginKey(plugin);
                    plugins.add(plugin);
                    if (data.containsKey(key)) {
                        data.get(key).add(entity);
                    } else {
                        SortedSet<IntegrationEntity> set = Sets.newTreeSet(new EntityTypeAndNameSorter());
                        set.add(entity);
                        data.put(key, set);
                    }
                }
            }
View Full Code Here

        }

        private void setNewChildren(IntegrationEntityTreeNode opNode, Set<IntegrationEntity> newChildren) {
            opNode.removeAllChildren();
            opNode.setAllowsChildren(true);
            List<IntegrationEntity> itemsToAdd = KList.fromItems(newChildren).sort(new EntityTypeAndNameSorter());
            for (IntegrationEntity e : itemsToAdd) {
                IntegrationEntityTreeNode nodeToAdd = e.getExtensionObject(IntegrationEntityTreeNode.class);
                opNode.add(nodeToAdd);
            }
            fireOpNodeChanged(opNode);
View Full Code Here

    }

    private Binding createBinding(EntityDependenciesModel model) {
        Property<List<IntegrationEntity>> property = model.getDependants();
        ListBinding<IntegrationEntity> binding = new ListBinding<IntegrationEntity>(property, list);
        binding.setListOrder(new EntityTypeAndNameSorter());
        binding.setListItemFunction(new EntityListFunction());
        return binding;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.EntityTypeAndNameSorter

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.