org.eclipse.nebula.widgets.nattable.command
Class VisualRefreshCommandHandler
java.lang.Object
  
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.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VisualRefreshCommandHandler
public VisualRefreshCommandHandler()
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 layercommand - the command
- Returns:
 - true if the command has been handled, false otherwise
 
 
Copyright © 2015. All rights reserved.