Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main
Class UINotificationGroup

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.UINotificationGroup

public class UINotificationGroup
extends Object

The UINotificationGroup class represents a group of notifications.

Author:
Yana Stamcheva

Constructor Summary
UINotificationGroup(String groupName, String groupDisplayName)
           
 
Method Summary
 void addNotification(UINotification notification)
          Adds the given notification to the list of unread notifications and notifies interested listeners.
 String getGroupDisplayName()
          Returns the display name of the group, to which this notification belongs.
 String getGroupName()
          Returns the name of the group, to which this notification belongs.
 Iterator<UINotification> getUnreadNotifications()
          Returns a list of all unread notifications.
 int getUnreadNotificationsCount()
          Returns the count of unread notifications for this group.
 void removeAllNotifications()
          Removes all unread notifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UINotificationGroup

public UINotificationGroup(String groupName,
                           String groupDisplayName)
Parameters:
groupName - the name of the group to which this notification belongs
groupDisplayName - the display name of the group to which this
Method Detail

getGroupName

public String getGroupName()
Returns the name of the group, to which this notification belongs.

Returns:
the name of the group, to which this notification belongs

getGroupDisplayName

public String getGroupDisplayName()
Returns the display name of the group, to which this notification belongs.

Returns:
the display name of the group, to which this notification belongs

addNotification

public void addNotification(UINotification notification)
Adds the given notification to the list of unread notifications and notifies interested listeners.

Parameters:
notification - the UINotification to add

removeAllNotifications

public void removeAllNotifications()
Removes all unread notifications.


getUnreadNotifications

public Iterator<UINotification> getUnreadNotifications()
Returns a list of all unread notifications.

Returns:
a list of all unread notifications

getUnreadNotificationsCount

public int getUnreadNotificationsCount()
Returns the count of unread notifications for this group.

Returns:
the count of unread notifications for this group

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.