Class DefaultEditConfiguration
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.AbstractLayerConfiguration<AbstractLayer>
-
- org.eclipse.nebula.widgets.nattable.edit.config.DefaultEditConfiguration
-
- All Implemented Interfaces:
IConfiguration
public class DefaultEditConfiguration extends AbstractLayerConfiguration<AbstractLayer>
Default configuration for edit behaviour in a NatTable. Will register theEditCellCommandHandler
and theInlineCellEditEventHandler
to the layer this configuration is added to. Usually this configuration is added to a GridLayer.It also registers default values on top-level for the following
EditConfigAttributes
:EditConfigAttributes.CELL_EDITABLE_RULE
- IEditableRule.NEVER_EDITABLE
by default a NatTable is not editableEditConfigAttributes
-TextCellEditor
by default a TextCellEditor will be used for editing cells in a NatTableEditConfigAttributes
-DefaultDataValidator
by default a validator is registered that always returnstrue
, regardless of the entered value
-
-
Constructor Summary
Constructors Constructor Description DefaultEditConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureRegistry(IConfigRegistry configRegistry)
Configure NatTable'sIConfigRegistry
upon receiving this callback.void
configureTypedLayer(AbstractLayer layer)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractLayerConfiguration
configureLayer, configureUiBindings
-
-
-
-
Method Detail
-
configureTypedLayer
public void configureTypedLayer(AbstractLayer layer)
- Specified by:
configureTypedLayer
in classAbstractLayerConfiguration<AbstractLayer>
-
configureRegistry
public void configureRegistry(IConfigRegistry configRegistry)
Description copied from interface:IConfiguration
Configure NatTable'sIConfigRegistry
upon receiving this callback. A mechanism to plug-in customICellPainter
,IDataValidator
etc.- Specified by:
configureRegistry
in interfaceIConfiguration
- Overrides:
configureRegistry
in classAbstractLayerConfiguration<AbstractLayer>
- Parameters:
configRegistry
- TheIConfigRegistry
instance to register configuration values to.
-
-