Examples of KongaListFactory


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

        Object selected = selection.head();
        return (selected instanceof WsdlFileListItem) ? ((WsdlFileListItem) selected).file : null;
    }

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

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

            return ListUtils.createModel((Object[]) files);
        }
    }

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

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

        list.selectFirst();
        return list;
    }

    private KongaListFactory getListFactory() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setVisibleRowCount(6);
        return factory;
    }
View Full Code Here

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

            finalSelectionMonitor.handle(null);
        }
    }

    private KongaList createEmptyList(ListModel model) {
        KongaListFactory factory = getListFactory();
        return factory.newList(model);
    }
View Full Code Here

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

        list = createList();
        setDataElements(des, false);
    }

    private KongaList createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setTransferHandler(new ListTransferHandlerImpl());
        factory.setDragSource(true);
        DefaultComponentController<JList> ctrl = new DefaultComponentController<JList>();
        ctrl.setPopupMenuRequestHandler(contextMenuHandler);
        factory.setController(ctrl);
        return factory.newList(model);
    }
View Full Code Here

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

        list = createList();
        bindProperties();
    }

    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

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

            }
        }
    }
   
    private KongaList createListUi(List<String> syntaxes) {
        KongaListFactory factory = new DefaultKongaListFactory();
        factory.setVisibleRowCount(12);
        return factory.newList(syntaxes);
    }
View Full Code Here

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

    private boolean hasSelection() {
        return !rootList.getSelection().isEmpty();
    }
   
    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();
View Full Code Here

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

        list = createList(forJson);
        bindToModel(model, forJson);
    }

    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

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);
        return list;
    }
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.