Class DefaultSortProcessor
java.lang.Object
org.eclipse.nebula.widgets.pagination.collections.DefaultSortProcessor
- All Implemented Interfaces:
SortProcessor
public class DefaultSortProcessor extends java.lang.Object implements SortProcessor
Default implementation of sort.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultSortProcessor()
-
Method Summary
Modifier and Type Method 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.
-
Constructor Details
-
DefaultSortProcessor
protected DefaultSortProcessor()
-
-
Method Details
-
getInstance
-
sort
public void sort(java.util.List<?> list, java.lang.String sortPropertyName, int sortDirection)Description copied from interface:SortProcessor
Sort the given list by using the given sort property name and direction.- Specified by:
sort
in interfaceSortProcessor
- Parameters:
list
- the list to sort.sortPropertyName
- the sort property name.sortDirection
- the sort directionSWT.UP
, {@link SWT.DOWN,SWT.NONE
.
-