TAILIEUCHUNG - Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1

Tham khảo tài liệu 'creating applications with mozilla-chapter 7. extending the ui with xbl- 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 7. Extending the UI with XBL- P1 You now know that XUL is the basic tool set for creating your application interface but even it has limitations. It is just a finite set of widgets that your programming needs may transcend. If you find that you reimplement many of the same groups of widgets in different applications or if you want to extend your application s interface in some other way you will find the extensible Binding Language XBL an invaluable tool. This chapter describes what XBL is and how it is used. Basically XBL provides a way to attach new content or behavior to your application by using XBL bindings. XBL can extend add to and reorganize user interfaces. XBL can also help you organize scattered XUL code into a set of selfcontained widgets that make building and maintaining your Mozilla application much easier. Appendix C provides a reference for the XBL element set with which new elements can be created. . What Is XBL XBL is an XML markup language invented specifically for creating widgets. XBL looks similar to XUL and may even contain XUL or HTML and other markup see the Section section later in this chapter for more information about how other markup is used in XBL bindings but its purpose is different. Flexibility and interoperability are the point of XBL. If the XUL textbox is inadequate for example you can use XBL to create and attach a new widget called datafield possibly based on textbox that provides special attributes and functionality for validating input data against a database. A binding is a single XBL language entity that can contain content as other markup such as XUL behavior that is represented as methods and properties and event-handling capabilities. Bindings can be anything from small widget objects to large complex blocks of code with extensive functionality. Figure 7-1 shows the different components that make up a binding fields properties functions event handlers and content. The section Section later in this

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.