TAILIEUCHUNG - Hacking Firefox - part 31

Part VI — Creating Extensions and Themes Figure 16-1 shows the horizontally arranged buttons. FIGURE 16-1: Horizontally arranged buttons As you can see, to create a horizontal layout, we placed the three buttons inside an hbox element. Similarly, to create a vertical layout, you place the elements inside a vbox: Figure 16-2 shows the vertically arranged buttons. FIGURE 16-2: Vertically arranged buttons An example of a complete XUL document follows: The xmlns=” .xul” line specifies that the window children are XUL elements. RDF in XUL Applications Resource Description Framework (RDF) is a technology for. | 302 Part VI Creating Extensions and Themes Figure 16-1 shows the horizontally arranged buttons. Blue Figure 16-1 Horizontally arranged buttons As you can see to create a horizontal layout we placed the three buttons inside an hbox element. Similarly to create a vertical layout you place the elements inside a vbox vbox button label Red button label Green button label Blue vbox Figure 16-2 shows the vertically arranged buttons. Figure 16-2 Vertically arranged buttons An example of a complete XUL document follows xml version window orient horizontal xmlns http keymaster gatekeeper textbox value Enter you text here button label Go window I Note The xmlns http keymaster gatekeeper .xul line specifies that the window children are XUL elements. RDF in XUL Applications Resource Description Framework RDF is a technology for describing Internet resources. It is typically implemented as an XML file having a special syntax. RDF is a complex topic outside the scope of this book. In the following sections you can see some Mozilla configuration files written using this format but understanding RDF is not required all the examples include the necessary explanations and clarifications. Chapter 16 Understanding Mozilla Programming 303 The RDF specification is maintained by the World Wide Web Consortium W3C . For more information about this technology in Mozilla visit the Mozilla RDF page http www . rdf doc . Additional XUL Resources Following are two additional XUL resources that might come in handy Mozilla XUL project page This page contains the XUL specification and links to additional XUL resources http projects xul . XUL Planet This site is dedicated to XUL programming. It has several very helpful tutorials and a lot of reference material http . We now know what XUL is and how we can use it to create user interfaces. But XUL by itself isn t very useful we have merely

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.