A trait providing functionality for editable cells.
A trait providing functionality for editable cells.
This trait can be mixed into custom implementations of JavaFX cells, e.g. for
trees or tables. It implements the major part of the functionality for making
the cell editable. This includes providing a text field acting as editor
control. The text field is accordingly configured to react on typical key
events for committing or canceling the edit operation.
A concrete sub class has to implement a method for persisting a successful
edit operation and a method which returns a string representing the current
content of the cell.
It is also possible to enhance the functionality for reacting on keys in the
edit text field. For this purpose a partial function can be returned by the
editKeyHandler() method.
A trait providing functionality for editable cells.
This trait can be mixed into custom implementations of JavaFX cells, e.g. for trees or tables. It implements the major part of the functionality for making the cell editable. This includes providing a text field acting as editor control. The text field is accordingly configured to react on typical key events for committing or canceling the edit operation.
A concrete sub class has to implement a method for persisting a successful edit operation and a method which returns a string representing the current content of the cell.
It is also possible to enhance the functionality for reacting on keys in the edit text field. For this purpose a partial function can be returned by the editKeyHandler() method.
the type of the content of the cell