[ start | index | login ]

Chrome

Created by mpecher. Last edited by mpecher, 5 years and 332 days ago. Viewed 637 times. #5
[diff] [history] [edit] [rdf]
labels

Chrome Package

The files for a package are usually combined into a single JAR file. Packages may also be accessed in expanded form into a directory. (handy during development since you can edit the file directly and then reload the XUL file without having to repackage or reinstall the files).

There are usually three different parts to a chrome package, although they are all optional. Each part is stored in a different directory. These three sets are:

  • Content - Windows and scripts
  • Skin - Style sheets, images and other theme specific files
  • Locale - Locale specific files

Content - Windows and scripts

The declarations of the windows and the user interface elements contained within them. These are stored in XUL files, which have a xul extension. A content package can have multiple XUL files, but the main window should have a filename that is the same as the package name. For example, the editor package will have a file within it called editor.xul. Scripts are placed in separate files alongside the XUL files.

Skin - Style sheets, images and other theme specific files

Style sheets describe details of the appearance of a window. They are stored separately from XUL files to facilitate modifying the skin (theme) of an application. Any images used are stored here also.

Locale - Locale specific files

All the text that is displayed within a window is stored separately. This way, a user can have a set for their own language.
no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< February 2012 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
26272829


Logged in Users: (1)
… and 10 Guests.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.