Widget runtime provides an environment where the widgets instances can
run. 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.