diff -r 4d198a32ac7d -r d4809db37847 plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-0E3095DB-03FF-4240-83F2-6D876AD2083A.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-0E3095DB-03FF-4240-83F2-6D876AD2083A.html Thu Aug 19 17:48:04 2010 -0700 @@ -0,0 +1,57 @@ + + +
A widget consists of several component files. In the development phase, your widget project is just a file system directory, where you create and store the component files. Some of the files are mandatory and must be found in every widget. You must store the mandatory files under the root directory of a widget project. In addition, your widget may have optional component files that you can store either directly under the root directory or in any subfolder under the root directory, except for the icon file.
+The following figure illustrates the component files of an example widget.
+Figure: Component files of an example widget
The following table lists the typical widget component files and describes their purpose. It also indicates whether a file is mandatory or optional.
+File |
+Use |
+Location |
+Description |
+
---|---|---|---|
+ | Mandatory |
+Root directory |
+An XML-formatted file that contains the property and configuration information of a widget, such as the HTML file used as well as the identifier of the widget. |
+
+ | Mandatory |
+Root directory |
+A standard HTML file that mainly contains information for structuring a widget. The name of the HTML file must be predefined within the Note: A widget package contains only one HTML file. |
+
|
+Optional |
+Root directory |
+A custom icon file that represents a widget on a mobile device when it has been installed. The icon image must be in Portable Networking Graphics (PNG) file format. The recommended size of the icon is 88 x 88 pixels. The icon is scaled automatically, based on the device screen resolution. If the |
+
+ | Optional |
+Root or any subfolder |
+External CSS file that defines the style and layout of widget contents. A widget can have as many individual CSS files as needed. It is also possible to embed the style information within the |
+
+ | Optional |
+Root or any subfolder |
+External JavaScript source code that implements the logic of a widget's operations, such as the construction of the widget UI elements, UI interaction, and communication. A widget can have as many individual It is also possible to embed JavaScript codes within the HTML file, thereby allowing the |
+
|
+Optional |
+Root or any subfolder |
+A custom image file that can be used in a widget. A widget can have as many individual image files as needed. |
+