public class VisualRefreshCommandHandler extends Object implements ILayerCommandHandler<VisualRefreshCommand>
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 and Description |
---|
VisualRefreshCommandHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(ILayer targetLayer,
VisualRefreshCommand command) |
Class<VisualRefreshCommand> |
getCommandClass() |
public Class<VisualRefreshCommand> getCommandClass()
getCommandClass
in interface ILayerCommandHandler<VisualRefreshCommand>
public boolean doCommand(ILayer targetLayer, VisualRefreshCommand command)
doCommand
in interface ILayerCommandHandler<VisualRefreshCommand>
targetLayer
- the target layercommand
- the commandCopyright © 2013. All Rights Reserved.