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