Package org.wikipediacleaner.api.data

Examples of org.wikipediacleaner.api.data.CompositeComparator.moveComparator()


    Object selectedItem = listSortItem.getSelectedValue();
    if ((selectedSort instanceof CompositeComparator) &&
        (selectedItem instanceof NamedComparator)) {
      CompositeComparator comparators = (CompositeComparator) selectedSort;
      NamedComparator comparator = (NamedComparator) selectedItem;
      comparators.moveComparator(comparator.getName(), up);
      int selected = listSortItem.getSelectedIndex();
      selected += up ? -1 : 1;
      modelSortItem.clear();
      for (int i = 0; i < comparators.getComparatorsCount(); i++) {
        NamedComparator item = comparators.getComparator(i);
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.