简言之,XUL是真正的GUI。
Listing 2 shows an example of XUL code.
清单2展示了一个XUL代码示例。
XUL看起来像什么?
Listing 1 (stats.xul). Simple xul example.
清单1 (stats .xul)。
This is simple XUL code to create a search form.
这是一段简单的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)。
You can develop widgets that will run anywhere WebKit and XUL run.
可以开发出在运行WebKit和XUL的任何地方运行的部件。
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覆盖层中进行描述。
This is the main problem with the direct means of experimenting with XUL.
这是直接使用XUL的主要问题。
XUL takes the very-thin-client model of HTML and thickens it up a bit.
XUL沿袭了HTML的极瘦客户机模式,但稍微让它变胖了一些。
XUL USES an XML-based markup language to describe the user interfaces controls.
XUL使用基于XML的标记语言描述用户界面控件。
I will break the XUL file into several parts, each with a pretty clear function.
我把这个XUL文件分解成几部分,每一部分都有明确的功能。
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特性仅仅是冰山一角而已。
In the sample application, I have only used a few of the available XUL controls.
这个示例应用程序只使用了少量的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 紧密依赖于当前平台的固有控件。
应用推荐