Overriding bind and unbind"
From Documentation
Tmillsclare (talk | contribs) m |
Tmillsclare (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{ZKComponentDevelopmentEssentialsPageHeader}} | {{ZKComponentDevelopmentEssentialsPageHeader}} | ||
− | The following diagrams outline when the < | + | The following diagrams outline when the <javadoc directory="jsdoc" method="bind_(zk.Desktop, zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> and <javadoc directory="jsdoc" method="unbind_(zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> methods are called. Firstly let’s take a look at how binding works. |
[[File:ZKComDevEss_bind_.png]] | [[File:ZKComDevEss_bind_.png]] | ||
− | The unbind_ function is very similar. Upon detaching of the widget from the DOM the unbind_ method is called enabling us to perform tasks such as adding and removing listeners to avoid memory leaks. The diagram below demonstrates this. | + | The <javadoc directory="jsdoc" method="unbind_(zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> function is very similar. Upon detaching of the widget from the DOM the <javadoc directory="jsdoc" method="unbind_(zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> method is called enabling us to perform tasks such as adding and removing listeners to avoid memory leaks. The diagram below demonstrates this. |
[[File:ZKComDevEss_unbind_.png]] | [[File:ZKComDevEss_unbind_.png]] | ||
− | Now that we have had a brief introduction of bind_ and unbind_ let’s see the methods put into action when we bind appropriate listeners for events. | + | Now that we have had a brief introduction of <javadoc directory="jsdoc" method="bind_(zk.Desktop, zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> and <javadoc directory="jsdoc" method="unbind_(zk.Skipper, _global_.Array)" class="false">zk.Widget</javadoc> let’s see the methods put into action when we bind appropriate listeners for events. |
{{ZKComponentDevelopmentEssentialsPageFooter}} | {{ZKComponentDevelopmentEssentialsPageFooter}} |
Revision as of 06:50, 14 July 2010
The following diagrams outline when the bind_(Desktop, Skipper, Array) and unbind_(Skipper, Array) methods are called. Firstly let’s take a look at how binding works.
The unbind_(Skipper, Array) function is very similar. Upon detaching of the widget from the DOM the unbind_(Skipper, Array) method is called enabling us to perform tasks such as adding and removing listeners to avoid memory leaks. The diagram below demonstrates this.
Now that we have had a brief introduction of bind_(Desktop, Skipper, Array) and unbind_(Skipper, Array) let’s see the methods put into action when we bind appropriate listeners for events.