org.eclipse.nebula.widgets.nattable.command
Class VisualRefreshCommandHandler

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.command.VisualRefreshCommandHandler
All Implemented Interfaces:
ILayerCommandHandler<VisualRefreshCommand>

public class VisualRefreshCommandHandler
extends Object
implements ILayerCommandHandler<VisualRefreshCommand>

Command handler for handling VisualRefreshCommands. Simply fires a VisualRefreshEvent. Needed to be able to refresh all layers by simply calling a command on the NatTable instance itself (Remember that events are fired bottom up the layer stack while commands are propagated top down). To refresh all layers by calling a VisualRefreshCommand on the NatTable instance, the VisualRefreshCommandHandler should be registered against the DataLayer.


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

Constructor Detail

VisualRefreshCommandHandler

public VisualRefreshCommandHandler()
Method Detail

getCommandClass

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

doCommand

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


Copyright © 2015. All rights reserved.