Examples of KongaListFactory


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

    public SelectionSourceWithDefaultAction asSelectionSource() {
        return list;
    }

    private KongaList createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        factory.setVisibleRowCount(15);
        return factory.newList();
    }
View Full Code Here

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

        binding = createBinding(model);
        binding.syncUi();
    }

    private KongaList createList() {
        KongaListFactory factory = ComponentFactories.newKongaListFactory();
        factory.setPrototypeValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        return factory.newList();
    }
View Full Code Here

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

        }
        return model;
    }
   
    private KongaList createListImpl(ListModel model) {
        KongaListFactory f = new DefaultKongaListFactory() {

            @Override
            protected JList createEmptyList() {
                JList list = (listFactory != null) ? listFactory.newList() : super.createEmptyList();
                list.setFocusable(false);
                list.setFocusTraversalKeysEnabled(false);
                return list;
            }
        };
        f.setCellRenderer(new DefaultListDecorRenderer());
        f.setVisibleRowCount(Math.min(20, model.getSize() + 2));
        setPrototypeCellValue(f, model);
        KongaList list = f.newList(model);
        list.setTransient(isTransient);
        list.setDefaultAction(selectionAction);
        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        list.addSelectionListener(new SelectedTokenListener());
        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.