TAILIEUCHUNG - Creating Applications with Mozilla-Chapter 9. XUL Templates- P1

Tham khảo tài liệu 'creating applications with mozilla-chapter 9. xul templates- p1', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 9. XUL Templates- P1 XUL templates are dynamically generated XUL elements and groups of XUL elements. They are often used to render lists and tables that display mutable frequently updated data such as your Inbox your list of bookmarks and user profiles. A XUL template can be used to create something as simple as a list of menu items as you will see here but it can also be used in much more exciting ways as shown at the end of this chapter. You should consider using a XUL template instead of XUL when you want to create an interface that displays data such as a roster of names when the set of data is very large when the data may change frequently or when you create a display that you want to use for different sets of data. RDF the format for data that goes into templates is described in detail in Chapter 10. The actual data used to build the template examples is displayed in Examples Example 10-1 and Example 10-4. However this chapter precedes the RDF chapter because templates are much easier to understand than RDF. Extending on the XUL programming done in Chapters Chapter 2 and Chapter 3 templates are a practical application of RDF data. They can also help you understand the abstract concepts introduced in Chapter 10. . Understanding XUL Templates By defining special rules and applying them to data stored in RDF files XUL templates build user interfaces dynamically. A XUL template consists of a set of special tags inside a XUL element -- often listbox menu or tree elements that match data in an RDF datasource. A XUL template is defined in a regular XUL file and may appear anywhere regular XUL content can be placed. The template defines rules for filling out the parent elements with the associated RDF data. Example 9-1 shows how to get a listbox in XUL to display RDF file contents. A template like this could display data stored in a RDF file that because it s so long complex or ephemeral shouldn t be hardcoded into XUL list elements. The data that comes .

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.