protected class TableControlSWTRenderer.ECPTableViewerComparator extends org.eclipse.jface.viewers.ViewerComparator implements TableViewerComparator
ViewerComparator
for this table which allows 3 states for sort order:
none, up and down.Modifier and Type | Method and Description |
---|---|
int |
compare(org.eclipse.jface.viewers.Viewer viewer,
Object e1,
Object e2) |
int |
getDirection()
Returns the alignment direction.
|
void |
setColumn(int column)
Sets the current column.
|
public int getDirection()
TableViewerComparator
getDirection
in interface TableViewerComparator
SWT.UP
,
SWT.DOWN
,
SWT.NONE
public void setColumn(int column)
TableViewerComparator
setColumn
in interface TableViewerComparator
column
- the column indexCopyright © 2018. All rights reserved.