Factory class for creating flatpacks - Widgets re-packaged with Widget Instance information and exported as a .wgt package.
For example, this can be used to create an exported Widget for side-loading into a mobile widget runtime.
Factory properties:
- parser
- The W3CWidgetFactory to use to parse the widget. If this is not specified, DEFAULT_PARSER will be used.
- instance
- The Widget Instance to be flatpacked.
- flatpackFolder
- The folder on the file system where the flatpacked Widget package should be saved. If this is not specified, DEFAULT_FLATPACK_FOLDER will be used
When the FlatpackFactory has been created, call the pack()
method to pack the widget instance, and return a pointer to the file where the .wgt package has been created