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 handlingVisualRefreshCommand
s. Simply fires aVisualRefreshEvent
. 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 aVisualRefreshCommand
on the NatTable instance, theVisualRefreshCommandHandler
should be registered against the DataLayer.
-
-
Constructor Summary
Constructors Constructor Description VisualRefreshCommandHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, VisualRefreshCommand command)
Class<VisualRefreshCommand>
getCommandClass()
-
-
-
Method Detail
-
getCommandClass
public Class<VisualRefreshCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<VisualRefreshCommand>
-
doCommand
public boolean doCommand(ILayer targetLayer, VisualRefreshCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<VisualRefreshCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
-