Class ConfigureScalingCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.layer.command.ConfigureScalingCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<ConfigureScalingCommand>
public class ConfigureScalingCommandHandler extends Object implements ILayerCommandHandler<ConfigureScalingCommand>
ILayerCommandHandler
for handlingConfigureScalingCommand
s. Simply updates theSizeConfig
instances with the transportedIDpiConverter
.
-
-
Constructor Summary
Constructors Constructor Description ConfigureScalingCommandHandler(SizeConfig columnWidthConfig, SizeConfig rowHeightConfig)
Create a newConfigureScalingCommandHandler
that updates the givenSizeConfig
instances on handling aConfigureScalingCommand
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, ConfigureScalingCommand command)
Class<ConfigureScalingCommand>
getCommandClass()
-
-
-
Constructor Detail
-
ConfigureScalingCommandHandler
public ConfigureScalingCommandHandler(SizeConfig columnWidthConfig, SizeConfig rowHeightConfig)
Create a newConfigureScalingCommandHandler
that updates the givenSizeConfig
instances on handling aConfigureScalingCommand
.Note: In case no
SizeConfig
instance is registered, this command handler will do nothing.- Parameters:
columnWidthConfig
- TheSizeConfig
for column width configuration. Can benull
.rowHeightConfig
- TheSizeConfig
for row height configuration. Can benull
.
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, ConfigureScalingCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<ConfigureScalingCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<ConfigureScalingCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<ConfigureScalingCommand>
-
-