Package org.jitterbit.ui.selection

Examples of org.jitterbit.ui.selection.SelectionConverter


    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


        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

        removeMemberAction.setReadOnly(readOnly);
        descriptionAction.setEnabled(editable);
    }

    private SelectionSource getMemberSelectionSource() {
        return new SelectionSourceConverter(memberList.asSelectionSource(), new SelectionConverter() {

            @Override
            public Object fromSelection(Object o) {
                return new GroupMember((User) o, group);
            }
View Full Code Here

            }
        }
    }

    private SelectionSource getGroupSelectionSource() {
        return new SelectionSourceConverter(groupList.asSelectionSource(), new SelectionConverter() {

            @Override
            public Object fromSelection(Object o) {
                return new GroupMember(user, ((GroupListUi) o).getGroup());
            }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.selection.SelectionConverter

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.