- 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 void
addNotification(INotification notification)
int
getMaxNotifications()
void
removeNotification(INotification notification)
void
setMaxNotifications(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:
addNotification
in interfaceINotificationService
- Parameters:
notification
- The @see INotification to add to the notification area.
-
removeNotification
public void removeNotification(INotification notification)
- Specified by:
removeNotification
in interfaceINotificationService
- Parameters:
notification
- The @see INotification to remove from the notification area.
-
setMaxNotifications
public void setMaxNotifications(int max)
- Specified by:
setMaxNotifications
in interfaceINotificationService
- Parameters:
max
- The maximum amount of notifications that can be seen at any time.
-
getMaxNotifications
public int getMaxNotifications()
- Specified by:
getMaxNotifications
in interfaceINotificationService
- Returns:
- The maximum amount of notifications that can be seen at any time.
-
-