Class FreezeGridAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.freeze.action.FreezeGridAction
- All Implemented Interfaces:
IKeyAction
IKeyAction
that will execute a FreezeSelectionCommand
with
the specified parameters.-
Constructor Summary
ConstructorDescriptionCreates a simple FreezeGridAction that doesn't toggle or override a current frozen state.FreezeGridAction
(boolean toggle) Creates a FreezeGridAction that doesn't override a current frozen state.FreezeGridAction
(boolean toggle, boolean overrideFreeze) Creates a FreezeGridAction.FreezeGridAction
(boolean toggle, boolean overrideFreeze, boolean include) Creates a FreezeGridAction. -
Method Summary
-
Constructor Details
-
FreezeGridAction
public FreezeGridAction()Creates a simple FreezeGridAction that doesn't toggle or override a current frozen state. -
FreezeGridAction
public FreezeGridAction(boolean toggle) Creates a FreezeGridAction that doesn't override a current frozen state. If it should toggle the current frozen state can be specified by parameter.- Parameters:
toggle
- whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.
-
FreezeGridAction
public FreezeGridAction(boolean toggle, boolean overrideFreeze) Creates a FreezeGridAction. If it should toggle or override the current frozen state can be specified by parameter.- Parameters:
toggle
- whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.overrideFreeze
- whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied. Note: Setting this value totrue
will override the toggle behaviour.
-
FreezeGridAction
public FreezeGridAction(boolean toggle, boolean overrideFreeze, boolean include) Creates a FreezeGridAction. If it should toggle or override the current frozen state can be specified by parameter.- Parameters:
toggle
- whether this command should toggle the frozen state between frozen and unfrozen, or if it should always result in a frozen state.overrideFreeze
- whether this command should override a current frozen state or if it should be skipped if a frozen state is already applied. Note: Setting this value totrue
will override the toggle behaviour.include
- whether the selected cell should be included in the freeze region or not. Include means the freeze borders will be to the right and bottom, while exclude means the freeze borders are to the left and top. Default isfalse
.- Since:
- 1.6
-
-
Method Details
-
run
- Specified by:
run
in interfaceIKeyAction
-