Class CellEditDialogFactory
java.lang.Object
org.eclipse.nebula.widgets.nattable.edit.gui.CellEditDialogFactory
Factory to create
ICellEditDialog instances that should be opened for
editing cell values.-
Method Summary
Modifier and TypeMethodDescriptionstatic ICellEditDialogcreateCellEditDialog(org.eclipse.swt.widgets.Shell parentShell, Object originalCanonicalValue, ILayerCell cell, ICellEditor cellEditor, IConfigRegistry configRegistry) Will determine and return theICellEditDialogto open for editing a cell value.
-
Method Details
-
createCellEditDialog
public static ICellEditDialog createCellEditDialog(org.eclipse.swt.widgets.Shell parentShell, Object originalCanonicalValue, ILayerCell cell, ICellEditor cellEditor, IConfigRegistry configRegistry) Will determine and return theICellEditDialogto open for editing a cell value. For this the type of theICellEditorand the configuration for tick updates are checked. Will return the defaultCellEditDialogfor the givenICellEditorfor cell editors that wrap an edit control. If theICellEditoritself is aICellEditDialog, it will returned itself without creating a new one.- Parameters:
parentShell- the parent shell, ornullto 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- TheIConfigRegistrycontaining 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
ICellEditDialogthat should be opened for editing a cell value.
-