public interface ECPCellEditorComparator
ECPCellEditor
may 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 |
---|---|
int |
compare(Object e1,
Object e2,
int direction)
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 comparisone2
- the second object of the comparisondirection
- SWT.NONE
, SWT.UP
or
SWT.DOWN
according to the indication displayed at
the table column.0
if 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 © 2017. All rights reserved.