diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2016-05-29 23:11:41 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2016-05-29 23:14:11 +0200 |
commit | 8c1b1b17cde4acdf75220f18b559b4ca616601d4 (patch) | |
tree | cb1b4bf3f1f8a60dea8fc8d4bee7ac08c8035ccf /src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java | |
parent | 8bee4d318ea5a5bf29a83e02a5ec8d68e74434df (diff) | |
download | jitsi-8c1b1b17cde4acdf75220f18b559b4ca616601d4.zip jitsi-8c1b1b17cde4acdf75220f18b559b4ca616601d4.tar.gz jitsi-8c1b1b17cde4acdf75220f18b559b4ca616601d4.tar.bz2 |
Add a notification cleared event
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java b/src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java index b6001f7..2d42233 100644 --- a/src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java +++ b/src/net/java/sip/communicator/impl/gui/main/UINotificationManager.java @@ -150,4 +150,23 @@ public class UINotificationManager listeners.next().notificationReceived(notification); } } + + + /** + * Notifies interested <tt>UINotificationListener</tt> that a + * notification has been cleared. + * + * @param notification the cleared notification + */ + static void fireClearedEvent(UINotification notification) + { + synchronized (notificationListeners) + { + Iterator<UINotificationListener> listeners + = notificationListeners.iterator(); + + while (listeners.hasNext()) + listeners.next().notificationCleared(notification); + } + } } |