Package org.jitterbit.integration.data.entity

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


    }

    private KongaTable createRawTable(EntityTestHistoryTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable raw = factory.newSortedTable(model, 10);
        raw.setComparator(model.getEntityColumnIndex(), new EntityTypeAndNameSorter());
        EntityTestHistoryTableRenderers.install(raw);
        return raw;
    }
View Full Code Here


        TableStyles.normal().makeOver(table);
        return new KongaRowTable(table);
    }

    private void installSorter(KongaTable table, DataElementReferenceTableModel model) {
        EntityTypeAndNameSorter itemComparator = new EntityTypeAndNameSorter();
        table.setComparator(0, itemComparator);
        table.setSortsOnUpdates(true);
    }
View Full Code Here

    }

    private List<IntegrationEntity> getApplicableItems(Function fcn) {
        List<IntegrationEntity> applicableItems = projectItems.getApplicableProjectItemArguments(fcn);
        if (!applicableItems.isEmpty()) {
            Collections.sort(applicableItems, new EntityTypeAndNameSorter());
        }
        return applicableItems;
    }
View Full Code Here

    private EntityTableSelector<IntegrationEntity> createSelector() {
        Set<? extends IntegrationEntity> items = getItemsToDisplay();
        items.remove(getStartPoint());
        EntityTableSelector<IntegrationEntity> selector = new EntityTableSelector<IntegrationEntity>(
                        KList.fromItems(items).sort(new EntityTypeAndNameSorter()), IntegrationEntity.class);
        selector.setSelectionState(true);
        return selector;
    }
View Full Code Here

        tree.expandAll();
    }

    private KongaTreeModel createTreeModel(EntityCollectionValidationResult result) {
        IntegrationEntity[] entities = result.getValidatedEntities();
        Arrays.sort(entities, new EntityTypeAndNameSorter());
        DefaultKongaTreeNode root = new DefaultKongaTreeNode("Validation", true); //$NON-NLS-1$
        for (IntegrationEntity entity : entities) {
            addEntityNode(result, entity, root);
        }
        return new DefaultKongaTreeModel(root);
View Full Code Here

    }

    private KongaTable createRawTable(EntityTestHistoryTableModel model) {
        TableFactory factory = ComponentFactories.tableFactory();
        KongaTable raw = factory.newSortedTable(model, 10);
        raw.setComparator(model.getEntityColumnIndex(), new EntityTypeAndNameSorter());
        raw.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        EntityTestHistoryTableRenderers.install(raw);
        TableStyles.normal().makeOver(raw);
        installTableController(raw);
        return raw;
View Full Code Here

        List<IntegrationEntity> entities = Lists.newArrayList();
        RootFolder sources = project.getRootFolder(EntityType.Source);
        collectEntitiesToTest(sources, entities);
        RootFolder targets = project.getRootFolder(EntityType.Target);
        collectEntitiesToTest(targets, entities);
        Collections.sort(entities, new EntityTypeAndNameSorter());
        return entities;
    }
View Full Code Here

                    entityList.add(e);
                } else {
                    unknown.add(id);
                }
            }
            entityList.sort(new EntityTypeAndNameSorter());
        }
        ListItemFactory f = new ListItemFactory();
        KList<ListItem> listItems = entityList.transform(f);
        listItems.addAll(unknown.transform(f));
        return listItems;
View Full Code Here

        installSorter(table);
        return table;
    }

    private void installSorter(KongaTable table) {
        EntityTypeAndNameSorter itemComparator = new EntityTypeAndNameSorter();
        itemComparator.setUseItemTypeForFolders(false);
        table.setComparator(0, itemComparator);
        table.setSortsOnUpdates(true);
    }
View Full Code Here

        List<IntegrationEntity> result = Lists.newArrayList();
        if (model.hasSearchString()) {
            searchImpl(result);
        }
        if (!isStopping()) {
            Collections.sort(result, new EntityTypeAndNameSorter());
            resultDisplayer.displaySearchResult(result);
        }
    }
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.