Class FreezeCommandHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler<IFreezeCommand>
org.eclipse.nebula.widgets.nattable.freeze.command.FreezeCommandHandler
- All Implemented Interfaces:
ILayerCommandHandler<IFreezeCommand>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FreezeLayerprotected final SelectionLayerprotected final ViewportLayer -
Constructor Summary
ConstructorsConstructorDescriptionFreezeCommandHandler(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(IFreezeCommand command) protected voidhandleFreezeCommand(IFreezeCoordinatesProvider coordinatesProvider, boolean toggle, boolean override) Performs freeze actions dependent on the coordinates specified by the givenIFreezeCoordinatesProviderand the configuration flags.protected voidUnfreeze a current frozen state.Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
Field Details
-
freezeLayer
-
viewportLayer
-
selectionLayer
-
-
Constructor Details
-
FreezeCommandHandler
public FreezeCommandHandler(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer)
-
-
Method Details
-
getCommandClass
-
doCommand
- Specified by:
doCommandin classAbstractLayerCommandHandler<IFreezeCommand>
-
handleFreezeCommand
protected void handleFreezeCommand(IFreezeCoordinatesProvider coordinatesProvider, boolean toggle, boolean override) Performs freeze actions dependent on the coordinates specified by the givenIFreezeCoordinatesProviderand the configuration flags. If a freeze state is already active it is checked if this state should be overriden or toggled. Otherwise the freeze state is applied.- Parameters:
coordinatesProvider- TheIFreezeCoordinatesProviderto retrieve the freeze coordinates fromtoggle- whether to unfreeze if the freeze layer is already in a frozen stateoverride- whether to override a current frozen state.
-
handleUnfreeze
protected void handleUnfreeze()Unfreeze a current frozen state.
-