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
VisualRefreshCommand
s. 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayer targetLayer, VisualRefreshCommand command)
-
Constructor Details
-
VisualRefreshCommandHandler
public VisualRefreshCommandHandler()
-
-
Method Details
-
getCommandClass
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<VisualRefreshCommand>
-
doCommand
- Specified by:
doCommand
in interfaceILayerCommandHandler<VisualRefreshCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-