org.eclipse.nebula.widgets.nattable.print.command
Class MultiTurnViewportOffCommandHandler

java.lang.Object
  extended by 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.

Author:
Dirk Fauth

Constructor Summary
MultiTurnViewportOffCommandHandler(ViewportLayer... viewports)
           
 
Method Summary
 boolean doCommand(ILayer targetLayer, TurnViewportOffCommand command)
           
 Class<TurnViewportOffCommand> getCommandClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiTurnViewportOffCommandHandler

public MultiTurnViewportOffCommandHandler(ViewportLayer... viewports)
Method Detail

doCommand

public boolean doCommand(ILayer targetLayer,
                         TurnViewportOffCommand command)
Specified by:
doCommand in interface ILayerCommandHandler<TurnViewportOffCommand>
Parameters:
targetLayer - the target layer
command - the command
Returns:
true if the command has been handled, false otherwise

getCommandClass

public Class<TurnViewportOffCommand> getCommandClass()
Specified by:
getCommandClass in interface ILayerCommandHandler<TurnViewportOffCommand>


Copyright © 2015. All rights reserved.