Class DisposeCalculatedValueCacheCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.DisposeCalculatedValueCacheCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<DisposeResourcesCommand>
public class DisposeCalculatedValueCacheCommandHandler extends Object implements ILayerCommandHandler<DisposeResourcesCommand>
ILayerCommandHandler
for theDisposeResourcesCommand
. Disposes theCalculatedValueCache
.Note that this command handler does not consume the
DisposeResourcesCommand
. So it is possible to register multiple instances of this command handler for different instances of theCalculatedValueCache
.- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description protected CalculatedValueCache
valueCache
-
Constructor Summary
Constructors Constructor Description DisposeCalculatedValueCacheCommandHandler(CalculatedValueCache valueCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, DisposeResourcesCommand command)
Class<DisposeResourcesCommand>
getCommandClass()
-
-
-
Field Detail
-
valueCache
protected CalculatedValueCache valueCache
-
-
Constructor Detail
-
DisposeCalculatedValueCacheCommandHandler
public DisposeCalculatedValueCacheCommandHandler(CalculatedValueCache valueCache)
- Parameters:
valueCache
- TheCalculatedValueCache
that should be affected by this command handler.
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, DisposeResourcesCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<DisposeResourcesCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<DisposeResourcesCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<DisposeResourcesCommand>
-
-