commit
boolean commit(Object canonicalValue,
SelectionLayer.MoveDirectionEnum direction)
Commit the new value and handle the selection in the current NatTable
after commit. This is necessary to support spreadsheet like behaviour,
e.g. after committing a value entered in a text editor by pressing tab,
the selection should move to the right. To avoid unnecessary dependencies
in the editors itself, this is handled in here.
- Parameters:
canonicalValue
- The value to commit.
direction
- The direction to move the selection after commit.
- Returns:
true
if the data update succeeded,
false
if something went wrong