Examples of newList()


Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

    }

    private KongaList createCommonImportsList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        KongaList list = factory.newList();
        list.setDefaultAction(new InsertCommonImportsActions());
        list.setLabel(KongaLabel.withMnemonic("Common &imports (double-click to insert):"));
        return list;
    }
   
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

    private KongaList createList(EntityCollectionValidationResult result) {
        ListModel model = createListModel(result);
        KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
        listFactory.setVisibleRowCount(Math.max(model.getSize(), 3));
        listFactory.setCellRenderer(new ListRenderer());
        return listFactory.newList(model);
    }

    private ListModel createListModel(EntityCollectionValidationResult result) {
        DefaultListModel model = new DefaultListModel();
        if (isValid(result)) {
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

    private KongaList createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setVisibleRowCount(10);
        factory.setCellRenderer(renderer);
        customizeFactory(factory, model);
        return factory.newList(model);
    }

    protected void customizeFactory(KongaListFactory factory, ListModel model) {
        // Default does nothing
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

        public ExistingLinksDisplayer() {
            deleteAction = new DeleteLinkAction();
            KongaListFactory factory = ComponentFactories.newKongaListFactory();
            factory.setVisibleRowCount(4);
            factory.addFocusKeyBinding(deleteAction, "delete");
            list = factory.newList();
            deleteAction.setSelectionSource(list);
        }

        @Override
        public void decorate(UiCanvas canvas) {
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

    private KongaList createCandidatesList() {
        listModel = new DefaultListModel();
        KongaListFactory f = ComponentFactories.newKongaListFactory();
        f.setCellRenderer(new ListRenderer());
        f.setVisibleRowCount(8);
        KongaList list = f.newList(listModel);
        list.setLabel(new JLabel("Suggested mappings:"));
        list.setDefaultAction(new SelectNodeAction());
        return list;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

            } else {
                for (String name : fileNames) {
                    model.addElement(new FileItem(name));
                }
            }
            return factory.newList(model);
        }

        private static String getCaption(MatchingFileList files) {
            switch (files.size()) {
            case 0:
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

   
    private KongaList createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        factory.setVisibleRowCount(8);
        KongaList list = factory.newList(model);
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        return list;
    }

    public boolean isEmpty() {
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

    private void createItemList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setCellRenderer(new DefaultListDecorRenderer());
        factory.setVisibleRowCount(8);
        entityList = factory.newList(getAffectedItems());
        entityList.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        entityList.addSelectionListener(new ListSelectionHandler());
    }

    private List<ListItem> getAffectedItems() {
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

        factory.setVisibleRowCount(visibleRowCount);
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        IntegrationEntityListDecorRenderer renderer = new IntegrationEntityListDecorRenderer();
        renderer.setInsets(new Insets(2, 0, 2, 0));
        factory.setCellRenderer(renderer);
        return factory.newList(entities);
    }
}
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory.newList()

        private KongaList createList() {
            ListModel model = getListModel();
            KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
            listFactory.setCellRenderer(new ListRenderer());
            listFactory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
            return listFactory.newList(model);
        }

        private ListModel getListModel() {
            DefaultListModel model = new DefaultListModel();
            Font font = TextStyles.DefaultListText.getFont();
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.