- java.lang.Object
-
- ilusr.iroshell.services.NotificationService
-
- All Implemented Interfaces:
INotificationService
public class NotificationService extends Object implements INotificationService
- Author:
- Jeff Riggle
-
-
Constructor Summary
Constructors Constructor Description NotificationService()Creates a Notification Service.NotificationService(Map<INotification,javafx.stage.Stage> shown, List<INotification> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotification(INotification notification)intgetMaxNotifications()voidremoveNotification(INotification notification)voidsetMaxNotifications(int max)
-
-
-
Constructor Detail
-
NotificationService
public NotificationService()
Creates a Notification Service.
-
NotificationService
public NotificationService(Map<INotification,javafx.stage.Stage> shown, List<INotification> queue)
- Parameters:
shown- The Shown Notifications.queue- The queued up notifications.
-
-
Method Detail
-
addNotification
public void addNotification(INotification notification)
- Specified by:
addNotificationin interfaceINotificationService- Parameters:
notification- The @see INotification to add to the notification area.
-
removeNotification
public void removeNotification(INotification notification)
- Specified by:
removeNotificationin interfaceINotificationService- Parameters:
notification- The @see INotification to remove from the notification area.
-
setMaxNotifications
public void setMaxNotifications(int max)
- Specified by:
setMaxNotificationsin interfaceINotificationService- Parameters:
max- The maximum amount of notifications that can be seen at any time.
-
getMaxNotifications
public int getMaxNotifications()
- Specified by:
getMaxNotificationsin interfaceINotificationService- Returns:
- The maximum amount of notifications that can be seen at any time.
-
-