Package org.eclipse.nebula.widgets.grid
Class GridHeaderEditor
- java.lang.Object
-
- org.eclipse.swt.custom.ControlEditor
-
- org.eclipse.nebula.widgets.grid.GridHeaderEditor
-
class GridHeaderEditor extends org.eclipse.swt.custom.ControlEditor
Manager for a Control that appears below the grid column header. Based onGridEditor
.
-
-
Field Summary
Fields Modifier and Type Field Description private GridColumn
column
private org.eclipse.swt.widgets.Listener
columnGroupListener
(package private) org.eclipse.swt.events.ControlListener
columnListener
private org.eclipse.swt.widgets.Listener
columnVisibleListener
private org.eclipse.swt.widgets.Listener
mouseOverListener
(package private) org.eclipse.swt.widgets.Listener
resizeListener
private org.eclipse.swt.widgets.Listener
scrollListener
private Grid
table
-
Constructor Summary
Constructors Constructor Description GridHeaderEditor(GridColumn column)
Creates a TableEditor for the specified Table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Removes all associations between the TableEditor and the cell in the table.(package private) void
initColumn()
Sets the zero based index of the column of the cell being tracked by this editor.protected org.eclipse.swt.graphics.Rectangle
internalComputeBounds()
Returns the bounds of the editor.void
layout()
void
setEditor(org.eclipse.swt.widgets.Control editor)
-
-
-
Field Detail
-
table
private Grid table
-
column
private GridColumn column
-
columnListener
org.eclipse.swt.events.ControlListener columnListener
-
resizeListener
org.eclipse.swt.widgets.Listener resizeListener
-
columnVisibleListener
private final org.eclipse.swt.widgets.Listener columnVisibleListener
-
columnGroupListener
private final org.eclipse.swt.widgets.Listener columnGroupListener
-
scrollListener
private final org.eclipse.swt.widgets.Listener scrollListener
-
mouseOverListener
private final org.eclipse.swt.widgets.Listener mouseOverListener
-
-
Constructor Detail
-
GridHeaderEditor
GridHeaderEditor(GridColumn column)
Creates a TableEditor for the specified Table.- Parameters:
column
- the Table Control above which this editor will be displayed
-
-
Method Detail
-
internalComputeBounds
protected org.eclipse.swt.graphics.Rectangle internalComputeBounds()
Returns the bounds of the editor.- Returns:
- bounds of the editor.
-
dispose
public void dispose()
Removes all associations between the TableEditor and the cell in the table. The Table and the editor Control are not disposed.- Overrides:
dispose
in classorg.eclipse.swt.custom.ControlEditor
-
initColumn
void initColumn()
Sets the zero based index of the column of the cell being tracked by this editor.- Parameters:
column
- the zero based index of the column of the cell being tracked by this editor
-
layout
public void layout()
- Overrides:
layout
in classorg.eclipse.swt.custom.ControlEditor
-
setEditor
public void setEditor(org.eclipse.swt.widgets.Control editor)
- Overrides:
setEditor
in classorg.eclipse.swt.custom.ControlEditor
-
-