AppEvent Class
The AppEvent class contains information regarding an application user-interface events. The event field, accessible in application methods, is initialized with an instance of this class when a FormObject event is being triggered. The getUserControl method retrieves the FormObject where the event originated.
To make it convenient to access a user control that triggered an event the method event.getUserControl returns the form or form object that triggered the event. The return type of the methods is IPropertyAccess and the object can be cast to an instance of the FormObject or Form class depending on what type of event is triggered.
Value Class
The methods getNewValue and getOldValue returns an object of type Value which has methods according to the table below. The Value class represents a value which can be retrieved in different formats depending on the form object. For example, an event triggered from an input field is a scalar variable (boolean, int, double, or String). This means that only a subset of the methods in the table below is valid for a particular form object event.
Example Code
The following code exemplifies how to use the event field, for the class AppEvent, and the methods getNewValue and getOldValue:
String value = event.getNewValue().getString();
String oldValue = event.getOldValue().getString();
For an example of using the event field and its associated methods, see Data Validation.