Packing as a Jar"
From Documentation
Line 100: | Line 100: | ||
</pre> | </pre> | ||
− | == Other | + | == Other files == |
<pre> | <pre> | ||
Line 106: | Line 106: | ||
/<css-files> (optional) | /<css-files> (optional) | ||
/img (optional) | /img (optional) | ||
+ | </pre> | ||
+ | |||
+ | * | ||
+ | ** web | ||
+ | *** <component-package> | ||
+ | **** css | ||
+ | ***** zk.wcs | ||
+ | ******''Let you can config the CSS file for a particular language '' | ||
+ | **** img | ||
+ | ***** '' This is a folder for some image files , and you can access them in xxx.css.dsp files through ${c:encodeURL('~./img/<component-package>/xxx.png')} | ||
+ | |||
+ | |||
+ | * For exmaple. | ||
+ | <pre> | ||
+ | ----/web/com/foo/zk.wcs | ||
+ | /css/zk.wcs | ||
+ | /css/xxx.css.dsp | ||
+ | /img/label-background.png | ||
+ | /img/label-background-hover.png | ||
</pre> | </pre> | ||
+ | |||
{{ZKComponentDevelopmentEssentialsHeadingToc}} | {{ZKComponentDevelopmentEssentialsHeadingToc}} | ||
{{ZKComponentDevelopmentEssentialsPageFooter}} | {{ZKComponentDevelopmentEssentialsPageFooter}} |
Revision as of 10:24, 17 September 2010
The Jar Archive
This step is to pack a jar for our ZK component , and then you can include it to your project or share with others.
To this we are going to show what a component jar need , and what configuration you can set in the jars.
Config files
----/META-INF/MANIFEST.MF ----/metainfo/mesg/msgzul.properties (optional) /msgzul_<locale>.properties (optional ...) /xml/<component-name>.xsd (optional) /zk/lang.xml (optional) /zk/lang-addon.xml
File descriptions
- META-INF
- MANIFEST.MF
- The file for jar defino
- MANIFEST.MF
- metainfo
- mesg
- msgzul.properties
- These files are i18n resource files,you can define with the locale you want , the default file is msgzul.properties.
- msgzul.properties
- xml
- <component-name>.xsd
- The xml schema for component tags
- <component-name>.xsd
- mesg
- zk
- lang.xml
- The language definition file (ex. "xul/html") , and you can define components here , too.
- lang-addon.xml
- The language add-on define components with specific language.
- lang.xml
- For exmaple.
----/META-INF/MANIFEST.MF ----/metainfo/mesg/msgzul.properties /msgzul_en_us.properties /msgzul_ca.properties /msgzul_ko.properties /msgzul_cs.properties /msgzul_zh.properties /msgzul_zh_tw.properties (......and so on ) /xml/simplelabel.xsd /zk/lang.xml /zk/lang-addon.xml
Component classes
----/<java-package-folder and classes>
- For exmaple.
----/com/foo/SimpleLabel.class /events/ClearEvent.class
Widget js-class/css/mold
----/web/js/<component-package>/mold/<component-mold-file>.js /css/<component-css-file> (optional) /<component-class-name>.js /zk.wpd
- For exmaple.
----/web/js/com/foo/mold/simple-label.js /css/simple-label.css.dsp /simple-label.js /zk.wpd
Other files
----/web/<component-package>/css/zk.wcs (optional) /<css-files> (optional) /img (optional)
-
- web
- <component-package>
- css
- zk.wcs
- Let you can config the CSS file for a particular language
- zk.wcs
- img
- This is a folder for some image files , and you can access them in xxx.css.dsp files through ${c:encodeURL('~./img/<component-package>/xxx.png')}
- css
- <component-package>
- web
- For exmaple.
----/web/com/foo/zk.wcs /css/zk.wcs /css/xxx.css.dsp /img/label-background.png /img/label-background-hover.png