The XEventBroadcaster Interface


When certain important events occur in OOo, the event is broadcast to all the objects that register as listeners for a specific event-for example, to be notified before a document is closed. The com.sun.star.document.XEventBroadcaster interface allows the desktop to act as a broadcaster .

The XEventBroadcaster interface defines the methods addEventListener() and removeEventListener() to add and remove event listeners. These two methods are not usually used directly because methods that are specific to the listener are typically used. For example, the Controller object contains the methods addKeyHandler() and removeKeyHandler() to add and remove listeners for key-press events.




OpenOffice.org Macros Explained
OpenOffice.org Macros Explained
ISBN: 1930919514
EAN: 2147483647
Year: 2004
Pages: 203

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net