|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.TableExtension
public class TableExtension
TableExtension is a buddy for a TableViewer allowing sorting on click on the column header and a width optimization of the column on doubleclick on the column header. The double click is handled manually by a selectionListener since the addListener(MouseDoubleClick ) on the cols does not work.
| Constructor Summary | |
|---|---|
TableExtension(org.eclipse.jface.viewers.TableViewer tableViewer)
Constructor. |
|
TableExtension(org.eclipse.jface.viewers.TableViewer tableViewer,
boolean doWidthOptimization)
Constructor |
|
| Method Summary | |
|---|---|
void |
setDoWidthOptimization(boolean doWidthControl)
If set to true the extension will react on double click doing a width change of the column. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
|
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
On dispose of the table viewer dispose imgae registry |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableExtension(org.eclipse.jface.viewers.TableViewer tableViewer,
boolean doWidthOptimization)
tableViewer - table viewer that is extended.doWidthOptimization - true for enabling of widht optimization (double click)public TableExtension(org.eclipse.jface.viewers.TableViewer tableViewer)
tableViewer - tableViewer table viewer that is extended.| Method Detail |
|---|
public void setDoWidthOptimization(boolean doWidthControl)
doWidthControl - true for enabling widht changespublic void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void widgetDisposed(org.eclipse.swt.events.DisposeEvent arg0)
widgetDisposed in interface org.eclipse.swt.events.DisposeListenerarg0 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||