In addition to properties, objects can also have model events that are published in response to user actions. For example, the Execute event for a component might be published in response to an onkeypress or onclick event. A model event is an abstraction layer that wraps native browser events. Model events translate events from the domain of the browser user interface into events from the General Interface model domain. Model events are persistent in General Interface GUI component serialization files and are thus a static binding from the user interface definition to JavaScript code. Model events, with a few exceptions such as hide, destroy, and show, can't be generated programmatically. Events are typically only generated by the user interaction with the browser.
The majority of model events grant access to the current wrapped event object with objEVENT and are only generated by user interaction. If a model event doesn't provide access to objEVENT, it may be generated programmatically. Events are documented in the Events Editor palette.
Events that can be generated programmatically include the following:
To specify a model event for a component, complete these steps: |
Contents
|

