Interface ICellEditHandler

All Known Implementing Classes:
DialogEditHandler, InlineEditHandler

public interface ICellEditHandler
Handles the updating of the data bean with the new value provided by the ICellEditor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    commit(Object canonicalValue, SelectionLayer.MoveDirectionEnum direction)
    Commit the new value and handle the selection in the current NatTable after commit.
  • Method Details

    • 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