Class UpdateDataCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler<UpdateDataCommand>
-
- org.eclipse.nebula.widgets.nattable.edit.command.UpdateDataCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<UpdateDataCommand>
public class UpdateDataCommandHandler extends AbstractLayerCommandHandler<UpdateDataCommand>
ILayerCommandHandler
that handlesUpdateDataCommand
s by updating the data model. It is usually directly registered to theDataLayer
this command handler is associated with.
-
-
Constructor Summary
Constructors Constructor Description UpdateDataCommandHandler(DataLayer dataLayer)
Creates anUpdateDataCommandHandler
that performs an equals check before performing a data update and does not perform an update if the data value is equal to the one currently set.UpdateDataCommandHandler(DataLayer dataLayer, boolean performEqualsCheck)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doCommand(UpdateDataCommand command)
Class<UpdateDataCommand>
getCommandClass()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
-
-
-
Constructor Detail
-
UpdateDataCommandHandler
public UpdateDataCommandHandler(DataLayer dataLayer)
Creates anUpdateDataCommandHandler
that performs an equals check before performing a data update and does not perform an update if the data value is equal to the one currently set.- Parameters:
dataLayer
- TheDataLayer
on which the data model updates should be executed.
-
UpdateDataCommandHandler
public UpdateDataCommandHandler(DataLayer dataLayer, boolean performEqualsCheck)
- Parameters:
dataLayer
- TheDataLayer
on which the data model updates should be executed.performEqualsCheck
- Flag to configure if the new value should be checked for equality with the existing value. If set totrue
the check is performed and the update operation will be skipped if the two values are equal. If set tofalse
the update is performed always.- Since:
- 1.6
-
-
Method Detail
-
getCommandClass
public Class<UpdateDataCommand> getCommandClass()
-
doCommand
protected boolean doCommand(UpdateDataCommand command)
- Specified by:
doCommand
in classAbstractLayerCommandHandler<UpdateDataCommand>
-
-