Package org.eclipse.nebula.widgets.grid
Class GridEditor
java.lang.Object
org.eclipse.swt.custom.ControlEditor
org.eclipse.nebula.widgets.grid.GridEditor
A GridEditor is a manager for a Control that appears above a cell in a Grid
 and tracks with the moving and resizing of that cell. It can be used to
 display a text widget above a cell in a Grid so that the user can edit the
 contents of that cell. It can also be used to display a button that can
 launch a dialog for modifying the contents of the associated cell.
 
- See Also:
- 
Field SummaryFields inherited from class org.eclipse.swt.custom.ControlEditorgrabHorizontal, grabVertical, horizontalAlignment, minimumHeight, minimumWidth, verticalAlignment
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected RectangleReturns the bounds of the editor.voiddispose()Removes all associations between the TableEditor and the cell in the table.intReturns the zero based index of the column of the cell being tracked by this editor.getItem()Returns the TableItem for the row of the cell being tracked by this editor.voidlayout()Lays out the control within the underlying composite.voidsetColumn(int column) Sets the zero based index of the column of the cell being tracked by this editor.voidSpecify the Control that is to be displayed and the cell in the table that it is to be positioned above.voidSets the item that this editor will function over.Methods inherited from class org.eclipse.swt.custom.ControlEditorgetEditor, setEditor
- 
Constructor Details- 
GridEditorCreates a TableEditor for the specified Table.- Parameters:
- table- the Table Control above which this editor will be displayed
 
 
- 
- 
Method Details- 
computeBoundsReturns the bounds of the editor.- Returns:
- bounds of the editor.
 
- 
disposepublic void dispose()Removes all associations between the TableEditor and the cell in the table. The Table and the editor Control are not disposed.- Overrides:
- disposein class- ControlEditor
 
- 
getColumnpublic int getColumn()Returns the zero based index of the column of the cell being tracked by this editor.- Returns:
- the zero based index of the column of the cell being tracked by this editor
 
- 
getItemReturns the TableItem for the row of the cell being tracked by this editor.- Returns:
- the TableItem for the row of the cell being tracked by this editor
 
- 
setColumnpublic void setColumn(int column) 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
 
- 
setItemSets the item that this editor will function over.- Parameters:
- item- editing item.
 
- 
setEditorSpecify the Control that is to be displayed and the cell in the table that it is to be positioned above.Note: The Control provided as the editor must be created with its parent being the Table control specified in the TableEditor constructor. - Parameters:
- editor- the Control that is displayed above the cell being edited
- item- the TableItem for the row of the cell being tracked by this editor
- column- the zero based index of the column of the cell being tracked by this editor
 
- 
layoutpublic void layout()Lays out the control within the underlying composite. This method should be called after changing one or more fields to force the Editor to resize.- Overrides:
- layoutin class- ControlEditor
 
 
-