org.wicketstuff.datatable_autocomplete.comparator
Class DTAComparator<E>

java.lang.Object
  extended by org.wicketstuff.datatable_autocomplete.comparator.DTAComparator<E>
All Implemented Interfaces:
Serializable, Comparator<E>, IClusterable

public abstract class DTAComparator<E>
extends Object
implements Comparator<E>, IClusterable

Author:
mocleiri Used for sortable columns in a DTATable. clicking on the link will toggle between sort ascending and sort descending.
See Also:
Serialized Form

Constructor Summary
DTAComparator(boolean ascending)
           
 
Method Summary
 int compare(E o1, E o2)
           
protected abstract  int compareAscending(E o1, E o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DTAComparator

public DTAComparator(boolean ascending)
Method Detail

compare

public final int compare(E o1,
                         E o2)
Specified by:
compare in interface Comparator<E>

compareAscending

protected abstract int compareAscending(E o1,
                                        E o2)
Parameters:
o1 -
o2 -
Returns:


Copyright © 2009-2013. All Rights Reserved.