SlideServe
Menu
Préférences
© SlideServe · v2026

XUL

seanthompson avatar
6 diapositives · 97 Views · Jan 05, 2020

XUL. XML User Interface Language. XUL. Firefox’s user interface is in XUL and JavaScript XUL is a XML grammar to add/modify UI widgets of the browser. User actions are bound to functionality using JavaScript. XUL Overlays. Overlays attach other UI widgets to XUL documents at run time.

XUL - slide 1
01 / 6XUL
1 / 17

Télécharger la présentation

XUL
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. XUL XML User Interface Language

  2. XUL • Firefox’s user interface is in XUL and JavaScript • XUL is a XML grammar to add/modify UI widgets of the browser. • User actions are bound to functionality using JavaScript.

  3. XUL Overlays • Overlays attach other UI widgets to XUL documents at run time. • XUL fragments are inserted at specific merge points in the master document. • For example:<statusbar id="status-bar"> <statusbarpanel id="my-panel" label="Hello, World"/> </statusbar> • “status-bar” is the merge point and “my-panel” is the new XUL fragment

  4. Chrome URI’s • XUL files are loaded via chrome URI’s chrome://<package name>/<part>/<file.xul> • The chrome URI has three parts: Package name : Given by user Type of data : Content or Skin or Locale Content : xul and js files Skin : images and css files Locale : DTD and .properties files File name : Path of the file to load

  5. Chrome URI’s… • Chrome URIs are written in chrome.manifest file • Overlays/skin/stylesheets are registered in chrome.manifest file overlay chrome://browser/content/browser.xul chrome://sample/content/sample.xul

  6. XUL file <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/x-javascript" src="chrome://sample/content/test.js"/> <?xml-stylesheet href="chrome://sample/skin/test.css" type="text/css"?> <statusbar id="status-bar"> <statusbarpanel id="my-panel" label="Hello World"/> </statusbar>