tailieunhanh - Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2
Tham khảo tài liệu 'creating applications with mozilla-chapter 6. packaging and installing applications-p2', 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 6. Packaging and Installing Applications-P2 . Overlaying Mozilla files into your application In the previous section we described how to use the XUL overlay technology to put information from your application into the Mozilla browser. When developers use overlays in this way they usually add a menuitem or a new UI to the browser that provides access to the application. But overlays can also add interface elements and other data from Mozilla into the application itself. In fact each component in Mozilla imports a lot of its own user interface from such XUL overlay mainstays as the file into which the xFly menuitem is overlaid and . As you can see when you look at the main browser file shown in Example 6-7 most user interface is actually brought in from these reusable overlays. A relatively small percentage of all that appears in the browser is defined within that particular file. Example 6-7. Overlays in xul-overlay href chrome navigator content ul xul-overlay href chrome navigator content l xul-overlay href chrome navigator content linkToolbarOverlay .xul xul-overlay href chrome communicator content sidebar sidebar xul-overlay href chrome communicator content securityOverlay .xul xul-overlay href chrome communicator content communicatorOve xul-overlay href chrome communicator content bookmarks bookm Of these overlays those with the most value for application developers are the which defines many of browser menus the which adds the Tools menu and brings in all of its application menuitems as well as a lot of important browser functions like toOpenWindowByType and toNavigator for returning to the main browser window and the globalOverlay which is overlaid into so it gets loaded there which defines even more general and .
đang nạp các trang xem trước