Professional Documents
Culture Documents
Eitan Suez
Programmer
eitan@uptodata.com
http://www.uptodata.com
Purpose
MFC, etc..)
Web (HTML, CSS, DHTML, JavaScript)
imaginary line
XUL version:
Rapid Development
GUI is not as rich
Need to be careful to avoid JavaScript "code-
creep"
Requires discipline to keep clean and organized
XUL
MFC
Swing
HTML
Poor
Easy Hard
(markup) (code)
Widgets
Buttons, Toolbars, StatusBars, Lists
More Widgets..
Grids, Tabbed Panes, Buttons
produces..
<box>
<description>hello world</description>
</box>
Boxes are nested inside each other to produce more complex layouts.
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml" title="Basic Layout"
orient="vertical" align="center" pack="center">
</window>
Developing GUIs with XUL 23
A typical layout..
let's practice by building a typical gui
layout together..
Very simple to
implement & use
legible, clear,
maintanable
compare this to the
kludges we usually
implement in dhtml :-)
Useful for lining things up, like captions and form elements
<xbl:binding id="fancytitle">
<xbl:content>
<hbox flex="1" class="header">
<description class="h1">
<xbl:children />
</description>
</hbox>
</xbl:content>
</xbl:binding>
</xbl:bindings>
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="">
<vbox flex="1">
<fancytitle>This is My Test</fancytitle>
<spacer style="height: 25px;" />
<fancytitle>Another fancy title</fancytitle>
</vbox>
</window>