Class DefaultEditBindings
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
-
- org.eclipse.nebula.widgets.nattable.edit.config.DefaultEditBindings
-
- All Implemented Interfaces:
IConfiguration
public class DefaultEditBindings extends AbstractUiBindingConfiguration
Default configuration for edit related bindings. Adds bindings that support opening cell editors via keypress and mouse click.By default
GridRegion.BODY
is used for the matchers to evaluate if an editor should be activated. By doing this only the editing in the body layer stack of a grid is enabled.Note: For typical
ICellEditor
s there is no special registering necessary like it was previous to 1.0.0. OnlyICellEditor
s that returnfalse
forICellEditor.activateAtAnyPosition()
need to register a customIMouseEventMatcher
to determine whether to activate the editor or not, regarding the correct position. This is for example necessary for theCheckboxCellEditor
that is configured with the correspondingCheckBoxPainter
, so the editor is only activated if the checkbox item is clicked, not any other position in the cell.
-
-
Constructor Summary
Constructors Constructor Description DefaultEditBindings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureUiBindings(UiBindingRegistry uiBindingRegistry)
Configure NatTable'sUiBindingRegistry
upon receiving this callback.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
-
-
-
Method Detail
-
configureUiBindings
public void configureUiBindings(UiBindingRegistry uiBindingRegistry)
Description copied from interface:IConfiguration
Configure NatTable'sUiBindingRegistry
upon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry
- TheUiBindingRegistry
instance to register ui bindings to.
-
-