Examples of newList()


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

        factory.setTransferHandler(new ListTransferHandlerImpl());
        factory.setDragSource(true);
        DefaultComponentController<JList> ctrl = new DefaultComponentController<JList>();
        ctrl.setPopupMenuRequestHandler(contextMenuHandler);
        factory.setController(ctrl);
        return factory.newList(model);
    }

    public void setActionProvider(Supplier<List<Action>> provider) {
        contextMenuHandler.setActionProvider(provider);
    }
View Full Code Here

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

    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.newList()

    }
   
    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.newList()

   
    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.newList()

    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;
    }

    private void bindToModel(StructureFileSelectionModel model, boolean forJson) {
View Full Code Here

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

    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;
    }
   
   
    private class DropHandler extends TransferHandler {
View Full Code Here

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

    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.newList()

    }

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

    private static ListModel createEmptyProblemListModel() {
        Object item = new ItalicTextListDecorator(getString("Displayer.Details.Instruction"));
        return new KongaListModel(Arrays.asList(item));
View Full Code Here

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

    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());
    }

    private ListModel getListModel() {
View Full Code Here

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

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

    private void bindProperties() {
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.