Class MultiTurnViewportOffCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.print.command.MultiTurnViewportOffCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<TurnViewportOffCommand>
public class MultiTurnViewportOffCommandHandler extends Object implements ILayerCommandHandler<TurnViewportOffCommand>
ILayerCommandHandler for the TurnViewportOffCommand that needs to be used with split viewports. As the command is consumed by the ViewportLayer and it is also not necessary to process the command any further, this handler is used to ensure that all viewports in the composition get the chance to process the command.
-
-
Constructor Summary
Constructors Constructor Description MultiTurnViewportOffCommandHandler(ViewportLayer... viewports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, TurnViewportOffCommand command)
Class<TurnViewportOffCommand>
getCommandClass()
-
-
-
Constructor Detail
-
MultiTurnViewportOffCommandHandler
public MultiTurnViewportOffCommandHandler(ViewportLayer... viewports)
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, TurnViewportOffCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<TurnViewportOffCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<TurnViewportOffCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<TurnViewportOffCommand>
-
-