view.mailBoxView.util
Class ArticleViewerSorter
java.lang.Object
org.eclipse.jface.viewers.ViewerSorter
view.mailBoxView.util.ArticleViewerSorter
public class ArticleViewerSorter
- extends org.eclipse.jface.viewers.ViewerSorter
This class implements the sorting for the article table in the mail view
- Author:
- pgroudas
| Fields inherited from class org.eclipse.jface.viewers.ViewerSorter |
collator |
|
Method Summary |
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2)
Compares the object for sorting |
void |
doSort(int column)
Does the sort. |
| 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 |
ASCENDING
private static final int ASCENDING
- See Also:
- Constant Field Values
DESCENDING
private static final int DESCENDING
- See Also:
- Constant Field Values
column
private int column
direction
private int direction
ArticleViewerSorter
public ArticleViewerSorter()
doSort
public void doSort(int column)
- Does the sort. If it's a different column from the previous sort, do an
ascending sort. If it's the same column as the last sort, toggle the sort direction.
- Parameters:
column -
compare
public int compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2)
- Compares the object for sorting
- Overrides:
compare in class org.eclipse.jface.viewers.ViewerSorter
- Parameters:
viewer - Viewere1 - Objecte2 - Object
- Returns:
- int