diff options
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); + } + } } |