public class DefaultSortProcessor extends java.lang.Object implements SortProcessor
Modifier | Constructor and Description |
---|---|
protected |
DefaultSortProcessor() |
Modifier and Type | Method and Description |
---|---|
static SortProcessor |
getInstance() |
void |
sort(java.util.List<?> list,
java.lang.String sortPropertyName,
int sortDirection)
Sort the given list by using the given sort property name and direction.
|
public static SortProcessor getInstance()
public void sort(java.util.List<?> list, java.lang.String sortPropertyName, int sortDirection)
SortProcessor
sort
in interface SortProcessor
list
- the list to sort.sortPropertyName
- the sort property name.sortDirection
- the sort direction SWT.UP
, SWT.DOWN,
{@link SWT.NONE} .