Widget runtime

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.

The process of loading a widget

  1. Loading and parsing the catalog definition XML file.
  2. Loading and parsing the widget definition XML file.
  3. Generating a ID for the widget
  4. Creating a widget object and initiating it.
  5. Loading the resource files.
  6. Creating the iScope instance.
  7. Creating an instance of iContext.
  8. Invoking the onLoad function of the iScope instance.