public class SortTableColumnSelectionListener extends AbstractSortColumnSelectionListener
SelectionListener implementation to sort a table column by using the
attached pagination controller of the SWT Table.| Constructor and Description |
|---|
SortTableColumnSelectionListener(java.lang.String propertyName)
Constructor with property name and default sort (SWT.NONE).
|
SortTableColumnSelectionListener(java.lang.String propertyName,
int sortDirection)
Constructor with property name and sort direction.
|
SortTableColumnSelectionListener(java.lang.String propertyName,
int sortDirection,
PageableController controller)
Constructor with property name and sort direction.
|
SortTableColumnSelectionListener(java.lang.String propertyName,
PageableController controller)
Constructor with property name and default sort (SWT.NONE).
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.swt.widgets.Table |
getParent(org.eclipse.swt.events.SelectionEvent e)
Returns the parent of the sorted column (ex Table for TableColumn, Tree
for TreeColumn).
|
protected void |
sort(org.eclipse.swt.events.SelectionEvent e)
Sort the column od the parent of the sorted column (ex Table for
TableColumn, Tree for TreeColumn).
|
getSortDirection, getSortPropertyName, widgetSelectedgetControllerpublic SortTableColumnSelectionListener(java.lang.String propertyName)
propertyName - the sort property name.public SortTableColumnSelectionListener(java.lang.String propertyName,
PageableController controller)
propertyName - the sort property name.controller - the controller to update when sort is applied.public SortTableColumnSelectionListener(java.lang.String propertyName,
int sortDirection)
propertyName - the sort property name.sortDirection - the sort direction SWT.UP, SWT.DOWN.public SortTableColumnSelectionListener(java.lang.String propertyName,
int sortDirection,
PageableController controller)
propertyName - the sort property name.sortDirection - the sort direction SWT.UP, SWT.DOWN.controller - the controller to update when sort is applied.protected org.eclipse.swt.widgets.Table getParent(org.eclipse.swt.events.SelectionEvent e)
AbstractSortColumnSelectionListenergetParent in class AbstractSortColumnSelectionListenerprotected void sort(org.eclipse.swt.events.SelectionEvent e)
AbstractSortColumnSelectionListenersort in class AbstractSortColumnSelectionListener