Examples of KongaListFactory


Examples of org.jitterbit.ui.widget.list.KongaListFactory

        }
        return model;
    }

    private KongaList createList(ListModel model, int visibleRows) {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setVisibleRowCount(visibleRows);
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXX");
        factory.setTransferHandler(new DropHandler());
        KongaList list = factory.newList(model);
        list.setSelectionConverter(new SelectionConverter() {

            @Override
            public Object fromSelection(Object listObject) {
                return ((UserListUi) listObject).getUser();
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        p.setTextStyle(TextStyles.AdminHintBold);
        return p;
    }

    private KongaList createProblemList() {
        KongaListFactory f = ComponentFactories.newKongaListFactory();
        f.setCellRenderer(new ListRenderer());
        return f.newList(createEmptyProblemListModel());
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        };
        UiUtils.runOnEventThread(job);
    }

    private void createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setCellRenderer(new ListRenderer());
        factory.setVisibleRowCount(10);
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXX");
        userAndGroupList = factory.newList(getListModel());
        userAndGroupList.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        userAndGroupList.addSelectionListener(new ListSelectionHandler());
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        searchFieldsPanel.setSearchAction(searchAction);
        bindProperties();
    }

    private KongaList createResultList() {
        KongaListFactory f = ComponentFactories.newKongaListFactory();
        f.setCellRenderer(new IntegrationEntityListDecorRenderer());
        f.setVisibleRowCount(15);
        KongaList list = f.newList();
        list.setDefaultAction(new OpenMatchingItemsAction());
        return list;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        packageField = new IndividualPackageField(scriptArea);
       
    }

    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

        list.requestFocus();
    }

    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);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        ListModel m = ListUtils.createModel(KList.fromItems(editors).sort(new EditorTitleComparator()));
        return new FilteredListModel(m);
    }

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

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        private final DeleteLinkAction deleteAction;

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

Examples of org.jitterbit.ui.widget.list.KongaListFactory

        return field;
    }

    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

            layout.north(caption);
            layout.center(fileList);
        }

        private static KongaList createList(MatchingFileList files) {
            KongaListFactory factory = ComponentFactories.newKongaListFactory();
            KongaListModel model = new KongaListModel();
            Collection<String> fileNames = files.getFileNames();
            if (fileNames.isEmpty()) {
                model.addElement(Strings.get("Connection.MatchingFiles.NoFiles"));
            } else {
                for (String name : fileNames) {
                    model.addElement(new FileItem(name));
                }
            }
            return factory.newList(model);
        }
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.