Class StructuralRefreshCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.StructuralRefreshCommandHandler
- All Implemented Interfaces:
ILayerCommandHandler<StructuralRefreshCommand>
public class StructuralRefreshCommandHandler
extends Object
implements ILayerCommandHandler<StructuralRefreshCommand>
Command handler for handling
StructuralRefreshCommand
s. Simply fires
a StructuralRefreshEvent
.
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 StructuralRefreshCommand
on the
NatTable instance, the StructuralRefreshCommandHandler
should be
registered against the DataLayer.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayer targetLayer, StructuralRefreshCommand command)
-
Constructor Details
-
StructuralRefreshCommandHandler
public StructuralRefreshCommandHandler()
-
-
Method Details
-
getCommandClass
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<StructuralRefreshCommand>
-
doCommand
- Specified by:
doCommand
in interfaceILayerCommandHandler<StructuralRefreshCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-