Docsity

Distributed Software Develop - Extensible User Interface Language | CS 682, Study notes of Software Engineering

Toggle sidebar
bg1
Distributed Software Development
XUL
Chris Brooks
Department of Computer Science
University of San Francisco
Departmentof Computer Science —University of San Francisco – p.1/??
14-0: XUL
XUL is an XML-based language designed for building user
interfaces within Mozilla (and Firefox).
Pronounced “zool”
Uses Javascript for event handling, CSS for display
Provides a rich set of graphical widgets
Can either be loaded as a URL, or installed.
Firefox’s extensions are written with XUL.
Departmentof Computer Science —University of San Francisco – p.2/??
14-1: Windows
The primary XUL element is a window
Similar to a frame in Java
Elements are placed within the window.
Departmentof Computer Science —University of San Francisco – p.3/??
14-2: Example
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
id="window1"
title="A sample window"
orient="horizontal"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
</window>
Departmentof Computer Science —University of San Francisco – p.4/??
14-3: Elements
Elements (widgets) are then placed within the window.
XUL has all of the typical elements you’d expect, plus
some others.
Each element is indicated by an XML element.
Images can also be included as elements.
Departmentof Computer Science —University of San Francisco – p.5/??
14-4: Element example
<window
id="findfile-window"
title="Find Files"
orient="horizontal"
align="start"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<button
id="identifier" class="dialog"
label="OK" default="true" />
<button label="Not OK" />
<button label="cancel"/>
<label id="label1" value="here is a label"/>
</window>
Departmentof Computer Science —University of San Francisco – p.6/??
pf3

Partial preview of the text

Download Distributed Software Develop - Extensible User Interface Language | CS 682 and more Study notes Software Engineering in PDF only on Docsity!

Distributed Software Development

XUL

Chris Brooks

Department of Computer Science

University of San Francisco

?? Department of Computer Science — University of San Francisco – p.1/

XUL 14-0:

XUL is an XML-based language designed for building user

interfaces within Mozilla (and Firefox).

Pronounced “zool”

Uses Javascript for event handling, CSS for display

Provides a rich set of graphical widgets

Can either be loaded as a URL, or installed.

Firefox’s extensions are written with XUL.

?? Department of Computer Science — University of San Francisco – p.2/

Windows 14-1:

The primary XUL element is a window

Similar to a frame in Java

Elements are placed within the window.

?? Department of Computer Science — University of San Francisco – p.3/

Example 14-2:

version="1.0"?> <?xml type="text/css"?> href="chrome://global/skin/" <?xml-stylesheet <window id="window1" window" sample title="A orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> ?? Department of Computer Science — University of San Francisco – p.4/

Elements 14-3:

Elements (widgets) are then placed within the window.

XUL has all of the typical elements you’d expect, plus

some others.

Each element is indicated by an XML element.

Images can also be included as elements.

?? Department of Computer Science — University of San Francisco – p.5/

Element example 14-4:

<window id="findfile-window" Files" title="Find orient="horizontal" align="start" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">