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
Modifier and TypeFieldDescriptionprotected final FreezeLayer
protected final SelectionLayer
protected final ViewportLayer
-
Constructor Summary
ConstructorDescriptionFreezeCommandHandler
(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
doCommand
(IFreezeCommand command) protected void
handleFreezeCommand
(IFreezeCoordinatesProvider coordinatesProvider, boolean toggle, boolean override) Performs freeze actions dependent on the coordinates specified by the givenIFreezeCoordinatesProvider
and the configuration flags.protected void
Unfreeze 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:
doCommand
in classAbstractLayerCommandHandler<IFreezeCommand>
-
handleFreezeCommand
protected void handleFreezeCommand(IFreezeCoordinatesProvider coordinatesProvider, boolean toggle, boolean override) Performs freeze actions dependent on the coordinates specified by the givenIFreezeCoordinatesProvider
and 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
- TheIFreezeCoordinatesProvider
to 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.
-