Class ResetScalingAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.scaling.ResetScalingAction
- All Implemented Interfaces:
IKeyAction
Action to reset any scaling/zoom settings in a NatTable instance to the
display scaling settings.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newResetScalingActionwithout an updater.ResetScalingAction(Consumer<IConfigRegistry> updater) Creates a newResetScalingActionwith the given updater. -
Method Summary
-
Constructor Details
-
ResetScalingAction
public ResetScalingAction()Creates a newResetScalingActionwithout an updater.Note:
Without an updater manually registered painters will not be updated and therefore won't reflect the udpated scaling. This only works in combination with theme styling, as the painter update is implemented in the themes internally. -
ResetScalingAction
Creates a newResetScalingActionwith the given updater.- Parameters:
updater- The updater that should be called on zoom operations. Needed to reflect the updated scaling. E.g. re-register ImagePainters like the CheckBoxPainter, otherwise the images will not be updated according to the scaling.
-
-
Method Details
-
run
- Specified by:
runin interfaceIKeyAction
-