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
Default configuration for edit behaviour in a NatTable. Will register the
EditCellCommandHandler and the InlineCellEditEventHandler 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureRegistry(IConfigRegistry configRegistry) Configure NatTable'sIConfigRegistryupon receiving this callback.voidconfigureTypedLayer(AbstractLayer layer) Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractLayerConfiguration
configureLayer, configureUiBindings
-
Constructor Details
-
DefaultEditConfiguration
public DefaultEditConfiguration()
-
-
Method Details
-
configureTypedLayer
- Specified by:
configureTypedLayerin classAbstractLayerConfiguration<AbstractLayer>
-
configureRegistry
Description copied from interface:IConfigurationConfigure NatTable'sIConfigRegistryupon receiving this callback. A mechanism to plug-in customICellPainter,IDataValidatoretc.- Specified by:
configureRegistryin interfaceIConfiguration- Overrides:
configureRegistryin classAbstractLayerConfiguration<AbstractLayer>- Parameters:
configRegistry- TheIConfigRegistryinstance to register configuration values to.
-