This windows only child is a label with the value Hello World!!!. This is a special attribute that informs the browser all its children are XUL. Its attributes contain an id and title as well as its orientation. Then XML file specifies a window element. In this code, the first two lines specify that this is an XML file and it uses a stylesheet. The following code displays Hello World message on the browser: Will show you the main Firefox user-interface. For example, since Firefox user-interface is written in XUL, you can access its xul files using chrome:// protocol. If you have installed a chrome packages, you can access its XUL files directly using Firefox specific protocol (chrome://). Either way, chrome packages usually have three type of data: content (main windows, scripts etc.), skin (theme related files such as images, css etc.), locale (local language related files). Alternatively, you can directly put the chrome directory inside your browser's profile directory. The jar file is basically a ZIP file with chrome directory structure. There are two ways to create chrome packages, a JAR file and a chrome directory. An alternative is to package several related files to a chrome package. You can access a XUL file just using regular URL. If the security permissions are enabled, you can also use XUL to remotely modify the interface of the browser. In fact, Firefox's interface is written in XUL. XUL could be used for Mozilla/Firefox extensions or stand-alone applications. Through XUL, you can defined input controls, toolbars, menus, dialogs, keyboard shortcuts and many more. It is at the heart of Mozilla based browsers. XUL (XML User-interface Language) is a markup language that describes the user interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |