org.wicketstuff.datatable_autocomplete.comparator
Class DTAComparator<E>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTAComparator
public DTAComparator(boolean ascending)
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.