public interface ECPCellEditorComparator
ECPCellEditormay optionally implement the ECPCellEditorComparator interface. Implementing the comparator interface will indicate to the users of the EPCCellEditor that the sorting algorithm shall use the compare method of the editor for the given column.
|Modifier and Type||Method and Description|
This method is called in order to compare the two given objects.
int compare(Object e1, Object e2, int direction)
e1- the first object of the comparison
e2- the second object of the comparison
SWT.DOWNaccording to the indication displayed at the table column.
0if the first element is equal to the second element; and a positive number if the first element is to be shown after the second element.
NOTE Keep in mind to take the given direction into account
Copyright © 2018. All rights reserved.