Class CellEditDialogFactory
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.gui.CellEditDialogFactory
-
public final class CellEditDialogFactory extends Object
Factory to createICellEditDialog
instances that should be opened for editing cell values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ICellEditDialog
createCellEditDialog(org.eclipse.swt.widgets.Shell parentShell, Object originalCanonicalValue, ILayerCell cell, ICellEditor cellEditor, IConfigRegistry configRegistry)
Will determine and return theICellEditDialog
to open for editing a cell value.
-
-
-
Method Detail
-
createCellEditDialog
public static ICellEditDialog createCellEditDialog(org.eclipse.swt.widgets.Shell parentShell, Object originalCanonicalValue, ILayerCell cell, ICellEditor cellEditor, IConfigRegistry configRegistry)
Will determine and return theICellEditDialog
to open for editing a cell value. For this the type of theICellEditor
and the configuration for tick updates are checked. Will return the defaultCellEditDialog
for the givenICellEditor
for cell editors that wrap an edit control. If theICellEditor
itself is aICellEditDialog
, it will returned itself without creating a new one.- Parameters:
parentShell
- the parent shell, ornull
to create a top-level shelloriginalCanonicalValue
- The value that should be propagated to the editor control. Needed because for multi cell editing or editor activation by letter/digit key will result in a different value to populate for some editors than populating the value out of the cell/data model directly.cell
- The cell that should be edited. Needed because editor activation retrieves the configuration for editing directly out of the cell.cellEditor
- The cell editor that should be used for multi cell editing.configRegistry
- TheIConfigRegistry
containing the configuration of the current NatTable instance the command should be executed for. This is necessary because the edit controllers in the current architecture are not aware of the instance they are running in and therefore it is needed for activation of editors.- Returns:
- The
ICellEditDialog
that should be opened for editing a cell value.
-
-