Package com.iizigo.text
Class ColumnListener
- java.lang.Object
- org.eclipse.swt.events.SelectionAdapter
- com.iizigo.text.ColumnListener
- All Implemented Interfaces:
java.util.EventListener
,org.eclipse.swt.events.SelectionListener
,org.eclipse.swt.internal.SWTEventListener
public class ColumnListener extends org.eclipse.swt.events.SelectionAdapter
The column listener for sorting.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description ColumnListener(TooltipTableViewer viewer, int column, TableComparator comparator)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Toggle direction if same column, otherwise set sort on selected column.
Constructor Detail
ColumnListener
public ColumnListener(TooltipTableViewer viewer, int column, TableComparator comparator)
Constructor.
Method Detail
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Toggle direction if same column, otherwise set sort on selected column.- Specified by:
widgetSelected
in interfaceorg.eclipse.swt.events.SelectionListener
- Overrides:
widgetSelected
in classorg.eclipse.swt.events.SelectionAdapter