Package org.jitterbit.ui.widget.list

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


    private KongaList createList() {
        KongaListFactory listFactory = ComponentFactories.newKongaListFactory();
        listFactory.setVisibleRowCount(4);
        listFactory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        ListStyles.normal().makeOver(listFactory);
        KongaList list = listFactory.newList();
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        list.setDefaultAction(new AbstractSelectionAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                fireActionEvent();
            }
        });
        list.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                fireInputChanged();
            }
View Full Code Here


    private KongaList createList() {
        KongaListFactory f = ComponentFactories.newKongaListFactory();
        f.setVisibleRowCount(4);
        f.setCellRenderer(new Renderer());
        KongaList list = f.newList(filteredListModel);
        list.setSelectionConverter(new SelectionConverter() {

            @Override
            public Object toSelection(Object obj) {
                return obj;
            }
View Full Code Here

        });
    }

    private void displayAvailableCommands() {
        List<String> syntaxes = collectCommandSyntaxes();
        KongaList listUi = createListUi(syntaxes);
        UiProviderDialogDisplayer.display(UiUtils.getActiveWindow(), listUi, "Available Commands");
    }
View Full Code Here

   
    private KongaList createRootList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setPrototypeValue(getPrototypeValue());
        factory.setVisibleRowCount(10);
        KongaList list = factory.newList();
        list.setDefaultAction(new AbstractSelectionAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                applySelection();
            }
        });
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        return list;
    }
View Full Code Here

    private static KongaList createList(boolean forJson) {
        KongaListFactory f = ComponentFactories.newKongaListFactory();
        f.setCellRenderer(new Renderer(forJson));
        f.setVisibleRowCount(4);
        KongaList list = f.newList();
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        return list;
    }
View Full Code Here

    private KongaList createListWithFiles(ListModel model) {
        KongaListFactory factory = getListFactory();
        DefaultComponentController<JList> listController = createController();
        factory.setController(listController);
        KongaList list = factory.newList(model);
        list.setDefaultAction(new AbstractSelectionAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                handleDoubleClick();
            }
        });
        list.selectFirst();
        return list;
    }
View Full Code Here

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

    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

    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

    }

    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

TOP

Related Classes of org.jitterbit.ui.widget.list.KongaList

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.