Changes

Jump to: navigation, search

XBL

1,088 bytes added, 23:18, 5 October 2006
How does XBL work?
=How does XBL work?=
::The XBL file used in developing XUL based applications is used to provide a specified set of functionality to individual elements that are rendered onto your screen.
 
::In order to understand how XBL works we must first understand the XUL ecosystem and the design pattern on which it is based upon.
::Let us observe the figure below:
:::[[Image:Xbl_model.gif|http://www.mozilla.org/docs/xul/xulnotes/xbl_model.gif]]
:::[http://www.mozilla.org/docs/xul/xulnotes/xbl_model.gif http://www.mozilla.org/docs/xul/xulnotes/xbl_model.gif]
::Within a XUL file, classes of elements are skinned with the definitions in the CSS file. However the definitions in the CSS file are just pointers to the bindings in the XBL. Bindings that are used to give the elements functionality or perhaps make change in their property. The design pattern used is indirection (Delegation pattern) where one object relies upon another to provide a specified set of functionality. In this case the CSS file relies on the bindings in the XBL file to provide it with definitions and functionalities for the elements.
=Resources/Examples=
1
edit

Navigation menu