Widget runtime provides an environment running context for the widgets.
It includes a set of services, such as CatalogService, ResourceService, WgtDefService
and so on.
The process of loading a widget is illustrated in the following figure.
- Loading and parsing the catalog definition XML file.
- Loading and parsing the widget definition XML file.
- Generating a ID for the widget
- Creating a widget object and initiating it.
- Loading the resource files.
- Creating the iScope instance.
- Creating an instance of iContext.
- Invoking the onLoad function of the iScope
instance.