public class XViewerSorter
extends org.eclipse.jface.viewers.ViewerSorter
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
format10 |
Constructor and Description |
---|
XViewerSorter(XViewer treeViewer) |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object o1,
java.lang.Object o2) |
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object o1,
java.lang.Object o2,
int sortXColIndex) |
int |
getCompareBasedOnDirection(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn sortXCol,
int compareInt,
org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object o1,
java.lang.Object o2,
int sortXColIndex) |
int |
getCompareForDate(java.util.Date date1,
java.util.Date date2) |
int |
getCompareForDate(java.lang.String date1,
java.lang.Object obj1,
java.lang.String date2,
java.lang.Object obj2) |
static int |
getCompareForFloat(double float1,
double float2) |
int |
getCompareForFloat(java.lang.String float1,
java.lang.String float2) |
static int |
getCompareForInteger(int int1,
int int2) |
int |
getCompareForInteger(java.lang.String int1,
java.lang.String int2) |
static int |
getCompareForLong(long long1,
long long2) |
int |
getCompareForLong(java.lang.String long1,
java.lang.String long2) |
int |
getCompareForPercent(int percent1,
int percent2) |
int |
getCompareForPercent(java.lang.String percent1,
java.lang.String percent2) |
int |
paragraphNumberCompare(java.lang.String s1,
java.lang.String s2) |
static Pair<java.util.Date,java.util.Date> |
parseDatePair(java.lang.String date1,
java.lang.String date2) |
public XViewerSorter(XViewer treeViewer)
public int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object o1, java.lang.Object o2, int sortXColIndex)
public int compare(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object o1, java.lang.Object o2)
compare
in class org.eclipse.jface.viewers.ViewerComparator
public int paragraphNumberCompare(java.lang.String s1, java.lang.String s2)
public int getCompareBasedOnDirection(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn sortXCol, int compareInt, org.eclipse.jface.viewers.Viewer viewer, java.lang.Object o1, java.lang.Object o2, int sortXColIndex)
public int getCompareForFloat(java.lang.String float1, java.lang.String float2)
public int getCompareForInteger(java.lang.String int1, java.lang.String int2)
public int getCompareForLong(java.lang.String long1, java.lang.String long2)
public static int getCompareForFloat(double float1, double float2)
public static int getCompareForInteger(int int1, int int2)
public static int getCompareForLong(long long1, long long2)
public int getCompareForDate(java.lang.String date1, java.lang.Object obj1, java.lang.String date2, java.lang.Object obj2)
public static Pair<java.util.Date,java.util.Date> parseDatePair(java.lang.String date1, java.lang.String date2)
public int getCompareForDate(java.util.Date date1, java.util.Date date2)
public int getCompareForPercent(java.lang.String percent1, java.lang.String percent2)
public int getCompareForPercent(int percent1, int percent2)