Package org.jitterbit.ui.selection

Examples of org.jitterbit.ui.selection.IndexedSelection.headIndex()


    }

    private void ensureSingleSelection() {
        IndexedSelection sel = selSource.getSelection();
        if (sel.size() > 1) {
            selSource.setSelection(SelectionFactory.newIndexedSelection(sel.head(), sel.headIndex()));
        }
    }

    /**
     * Sets the initial selection state for the displayed objects.
View Full Code Here


    }

    private void finalSelectionMade() {
        IndexedSelection selection = itemList.getSelection();
        hide();
        int index = selection.headIndex();
        T object = (index >= 0 ? items[index] : null);
        for (ListSelectorWindowListener<T> lst : listeners) {
            lst.done(object);
        }
    }
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.