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.
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.
For an example of using the event field and its associated methods, see
Data Validation.