Package org.jitterbit.ui.widget.list

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


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


        this.items = items.clone();
        moveDownKeys = new HashSet<AWTKeyStroke>();
        moveUpKeys = new HashSet<AWTKeyStroke>();
        listeners = new CopyOnWriteArrayList<ListSelectorWindowListener<T>>();
        focusLostMeansCancelled = true;
        listFactory = new DefaultKongaListFactory();
    }
View Full Code Here

        }
        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

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

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.