Stop NatTable from going into edit mode when an editable cell is left-mouse-clicked -


nattable's default behavior when editable cell left-mouse-clicked launch cell's editor.

users left-click toss focus table, , use arrow keys navigate around inside of it. given table's default behavior, first need dismiss edit operation via enter, escape, etc. before can move cell selection.

i'd alter behavior left-mouse-click selects cell clicked, not instigate edit.

the editing triggers configured in org.eclipse.nebula.widgets.nattable.edit.config.defaulteditbindings class, used org.eclipse.nebula.widgets.nattable.grid.layer.config.defaultgridlayerconfiguration.

all have register different grid layer configuration uses different edit bindings. example:

        gridlayer gridlayer = new gridlayer(bodylayer, columnheaderlayer, rowheaderlayer, cornerlayerstack, false) {          @override         protected void init(boolean usedefaultconfiguration) {             super.init(usedefaultconfiguration);             addconfiguration(new defaultgridlayerconfiguration(this) {                  @override                 protected void addeditinguiconfig() {                     addconfiguration(new defaulteditbindings() {                          @override                         public void configureuibindings(                                 uibindingregistry uibindingregistry) {                             super.configureuibindings(uibindingregistry);                              //update bindings wish                         }                       });                 }               });         }      }; 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -