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 on
GridEditor
.-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.events.ControlListener
columnListener
(package private) org.eclipse.swt.widgets.Listener
resizeListener
-
Constructor Summary
Constructors Constructor Description GridHeaderEditor(GridColumn column)
Creates a TableEditor for the specified Table. -
Method Summary
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 Details
-
columnListener
org.eclipse.swt.events.ControlListener columnListener -
resizeListener
org.eclipse.swt.widgets.Listener resizeListener
-
-
Constructor Details
-
GridHeaderEditor
GridHeaderEditor(GridColumn column)Creates a TableEditor for the specified Table.- Parameters:
column
- the Table Control above which this editor will be displayed
-
-
Method Details
-
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
-