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>
public class FreezeCommandHandler extends AbstractLayerCommandHandler<IFreezeCommand>
-
-
Field Summary
Fields Modifier and Type Field Description protected FreezeLayer
freezeLayer
protected SelectionLayer
selectionLayer
protected ViewportLayer
viewportLayer
-
Constructor Summary
Constructors Constructor Description FreezeCommandHandler(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(IFreezeCommand command)
Class<IFreezeCommand>
getCommandClass()
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
handleUnfreeze()
Unfreeze a current frozen state.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractLayerCommandHandler
doCommand
-
-
-
-
Field Detail
-
freezeLayer
protected final FreezeLayer freezeLayer
-
viewportLayer
protected final ViewportLayer viewportLayer
-
selectionLayer
protected final SelectionLayer selectionLayer
-
-
Constructor Detail
-
FreezeCommandHandler
public FreezeCommandHandler(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer)
-
-
Method Detail
-
getCommandClass
public Class<IFreezeCommand> getCommandClass()
-
doCommand
public boolean doCommand(IFreezeCommand command)
- 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.
-
-