User-defined text field input restrictions

* The max length of a text field can be set.
* There is a so-called OverflowBehavior class, which is responsible for
handling cases where inserted text makes the contents longer than the
max length.
* A Pattern can be applied to the text field. Every input is matched
against that pattern, and if the result is false, nothing happens. Usage
ex.: only allow numbers.