Listing 2 shows an example of XUL code.
清单2展示了一个XUL代码示例。
XUL看起来像什么?
Listing 1 shows the XUL code behind this system.
清单1显示了这个系统背后的XUL代码。
XUL ignores several irritating restrictions of HTML.
XUL忽略了HTML中一些让人生气的限制。
Mozilla Firefox: Set up the browser to run XUL files.
MozillaFirefox:设置浏览器以运行XUL文件。
They are not the most common tasks to do in XUL applications.
但它们并不是XUL应用程序中的常见任务。
Listing 2 (overlay.xul). Xul overlay to add a menu item.
清单2 (overlay .xul)。
XUL is the main technology behind Firefox and its extensions.
XUL是Firefox及其扩展背后的主要技术。
XUL USES the RDF format, which can be used to store resources.
XUL使用rdf格式,可用于存储资源。
Start with the XUL code for the user interface (see Listing 1).
我们从用户界面的XUL代码开始(参见清单1)。
XUL allows you to create, arrange, and activate all these components.
XUL允许您创建、安排和激活所有这些成分。
An XUL application is specified in XML where each component is defined.
用XML指定了一个XUL应用程序,定义了每种组件。
To add toolbar buttons you'll need to describe them in the XUL overlay.
添加工具栏按钮需要在XUL覆盖层中进行描述。
XUL takes the very-thin-client model of HTML and thickens it up a bit.
XUL沿袭了HTML的极瘦客户机模式,但稍微让它变胖了一些。
Figure 2 shows the updated XUL window with a stylesheet, loaded into Firefox.
图2显示将一个使用样式表更新过的XUL窗口加载到Firefox中。
XUL USES an XML-based markup language to describe the user interfaces controls.
XUL使用基于XML的标记语言描述用户界面控件。
Plus, Pyjamas lets you write desktop applications built on top of WebKit and XUL.
另外,Pyjamas允许编写在WebKit和XUL上构建的桌面应用程序。
The last step in developing this demo XUL application is to make the controls work.
开发这个示例XUL应用程序的最后一步是使控件可以工作。
Familiarity with XUL development is certainly beneficial, but not strictly required.
熟悉XUL开发会有帮助,但并非硬性要求。
The features of XUL illustrated in this article are just the tip of the iceberg.
本文中讲述的XUL特性仅仅是冰山一角而已。
However, you may also include any HTML widgets you like inside your XUL applications.
但是在XUL应用程序中可以包括喜欢的任何HTML部件。
The first line determines where the main content lives, such as XUL files and scripts.
第一行确定主要内容的位置,例如XUL文件和脚本。
The first line determines where the main content lives, such as XUL files and scripts.
第一行确定主要内容的位置,例如XUL文件和脚本。
To perform this task, XUL relies heavily on the current platform's native widgets.
为了达到这样的目的,XUL 紧密依赖于当前平台的固有控件。
XUL makes it easy to extend user interfaces in this way using what are called overlays.
XUL通过提供称为覆盖(overlay)的方式可以轻松地对用户界面进行扩展。
Although XUL is a bit more user-responsive than HTML, it won't do business logic for you.
尽管XUL比HTML 提供更多的用户响应能力,但是却不能为您实现业务逻辑。
You've seen how naturally XUL mixes with the basic building blocks of Web development.
您已经了解到,XUL 可以和Web 开发的基本构建块自然地结合。
Because XUL is like an XML file, you can use any text editor or XML editor for the IDE.
因为XUL类似于XML文件,所以可以使用IDE的任何文本编辑器或XML编辑器。
The init.js file, shown in Listing 4, reveals the environment in which XUL scripts run.
清单4显示了init. js文件,您可以从中看出xul脚本运行的环境。
Don't try to tell me that these XUL applications have been single-threaded all of this time!
不要告诉我这些XUL应用程序一直以来都是单线程的!
应用推荐