Difference between revisions of "Documentation/DevGuide/ProUNO/Children of the XEventListener Interface"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Professional UNO)
m
Line 6: Line 6:
 
|NextPage=Documentation/DevGuide/ProUNO/Weak Objects and References
 
|NextPage=Documentation/DevGuide/ProUNO/Weak Objects and References
 
}}
 
}}
 +
[[zh:Zh/Documentation/DevGuide/ProUNO/Children of the XEventListener Interface]]
 
{{DISPLAYTITLE:Children of the XEventListener Interface}}
 
{{DISPLAYTITLE:Children of the XEventListener Interface}}
 
The <idl>com.sun.star.lang.XEventListener</idl> interface is the base for all listener interfaces . This means that not only <code>XEventListeners</code>, but every listener must implement <code>disposing()</code>, and every broadcaster object that allows any kind of listener to register, must call <code>disposing()</code> on the listeners as soon as it dies. However, not every broadcaster is forced to implement the <code>XComponent</code> interface with the <code>dispose()</code> method, because it may define its own condition when it is disposed.
 
The <idl>com.sun.star.lang.XEventListener</idl> interface is the base for all listener interfaces . This means that not only <code>XEventListeners</code>, but every listener must implement <code>disposing()</code>, and every broadcaster object that allows any kind of listener to register, must call <code>disposing()</code> on the listeners as soon as it dies. However, not every broadcaster is forced to implement the <code>XComponent</code> interface with the <code>dispose()</code> method, because it may define its own condition when it is disposed.

Revision as of 07:31, 1 July 2008

The com.sun.star.lang.XEventListener interface is the base for all listener interfaces . This means that not only XEventListeners, but every listener must implement disposing(), and every broadcaster object that allows any kind of listener to register, must call disposing() on the listeners as soon as it dies. However, not every broadcaster is forced to implement the XComponent interface with the dispose() method, because it may define its own condition when it is disposed.

In a chain of broadcaster objects where every element is a listener of its predecessor and only the root object is an XComponent that is being disposed, all the other chain links must handle the disposing() call coming from their predecessor and call disposing() on their registered listeners.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages