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 handling ConfigureScalingCommands.
Simply updates the SizeConfig instances with the transported
IDpiConverter.-
Constructor Summary
ConstructorsConstructorDescriptionConfigureScalingCommandHandler(SizeConfig columnWidthConfig, SizeConfig rowHeightConfig) Create a newConfigureScalingCommandHandlerthat updates the givenSizeConfiginstances on handling aConfigureScalingCommand. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(ILayer targetLayer, ConfigureScalingCommand command)
-
Constructor Details
-
ConfigureScalingCommandHandler
Create a newConfigureScalingCommandHandlerthat updates the givenSizeConfiginstances on handling aConfigureScalingCommand.Note: In case no
SizeConfiginstance is registered, this command handler will do nothing.- Parameters:
columnWidthConfig- TheSizeConfigfor column width configuration. Can benull.rowHeightConfig- TheSizeConfigfor row height configuration. Can benull.
-
-
Method Details
-
doCommand
- Specified by:
doCommandin interfaceILayerCommandHandler<ConfigureScalingCommand>- Parameters:
targetLayer- the target layercommand- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
- Specified by:
getCommandClassin interfaceILayerCommandHandler<ConfigureScalingCommand>
-