Added option to save committed values and restore them if not accepted
Does the following:
- Restore the field value to a previously committed value if field input is rejected while committing.
- Also restore the previously committed value if validate event fails.
- Generalized the parameters of processAction methods to accept a FormField* rather than a FormFieldText*. This is so in future we can use same methods for ComboBox and ListBoxes too.
- Moved the Keystroke, Validate, Calculate, Format event execution to a separate function since this event execution order is bound to repeat itself many times.
Edited by Pratham Gandhi