org.softevo.ample.ui.views
Class RankingSorter

java.lang.Object
  extended by org.eclipse.jface.viewers.ViewerSorter
      extended by org.softevo.ample.ui.AbstractSorter
          extended by org.softevo.ample.ui.views.RankingSorter

public class RankingSorter
extends AbstractSorter


Field Summary
static int MODE_CLASSNAME
           
static int MODE_WEIGHT
           
 
Fields inherited from class org.softevo.ample.ui.AbstractSorter
ascending, mode
 
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
 
Constructor Summary
RankingSorter(boolean ascending, int mode)
           
 
Method Summary
protected  int compare(java.lang.Object first, java.lang.Object second)
           
 
Methods inherited from class org.softevo.ample.ui.AbstractSorter
compare, getAscending, getMode, setAscending
 
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
category, getCollator, isSorterProperty, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_CLASSNAME

public static final int MODE_CLASSNAME
See Also:
Constant Field Values

MODE_WEIGHT

public static final int MODE_WEIGHT
See Also:
Constant Field Values
Constructor Detail

RankingSorter

public RankingSorter(boolean ascending,
                     int mode)
Method Detail

compare

protected int compare(java.lang.Object first,
                      java.lang.Object second)
Specified by:
compare in class AbstractSorter