Class ScalingUiBindingConfiguration
java.lang.Object
org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
org.eclipse.nebula.widgets.nattable.ui.scaling.ScalingUiBindingConfiguration
- All Implemented Interfaces:
IConfiguration
Default configuration to add bindings to change the scaling / zoom level of a
NatTable.
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionScalingUiBindingConfiguration(NatTable natTable) Creates a newZoomOutScalingActionwithout an updater.ScalingUiBindingConfiguration(NatTable natTable, Consumer<IConfigRegistry> updater) Creates a newZoomOutScalingActionwith the given updater. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUiBindings(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistryupon receiving this callback.Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
Constructor Details
-
ScalingUiBindingConfiguration
Creates a newZoomOutScalingActionwithout 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.- Parameters:
natTable- The NatTable instance to which the scaling bindings should be added. Needed to attach the mouse scroll listener.
-
ScalingUiBindingConfiguration
Creates a newZoomOutScalingActionwith 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
-
configureUiBindings
Description copied from interface:IConfigurationConfigure NatTable'sUiBindingRegistryupon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry- TheUiBindingRegistryinstance to register ui bindings to.
-