Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: util ::

unpublished interface XBroadcaster
Usage Restrictions
not published
Description
allows to control notification behaviour of a broadcaster.
Since
OOo 3.0

Methods' Summary
lockBroadcasts suspends broadcasts to the registered listeners.  
unlockBroadcasts resumes the broadcasts which were suspended by XBroadcaster::lockBroadcasts().  
Methods' Details
lockBroadcasts
[oneway] void
lockBroadcasts();

Description
suspends broadcasts to the registered listeners.

The calls to XBroadcaster::lockBroadcast() and XBroadcaster::unlockBroadcasts() may be nested and even overlapping, but they must be in pairs. While there is at least one lock remaining, no broadcasts are sent to registered listeners.

unlockBroadcasts
[oneway] void
unlockBroadcasts();

Description
resumes the broadcasts which were suspended by XBroadcaster::lockBroadcasts().

The calls to XBroadcaster::lockBroadcast() and XBroadcaster::unlockBroadcasts() may be nested and even overlapping, but they must be in pairs. While there is at least one lock remaining, no broadcasts are sent to registered listeners.

Pending broadcasts will be sent immediately after the last call to XBroadcaster::lockBroadcast() is matched by a call to XBroadcaster::unlockBroadcasts(). An implementation can decide to broadcast all pending notification in order or batch them in single broadcasts.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.