public abstract class NotificationTask
extends java.lang.Object
NotificationEvent
to a list
of actions to be performed when the event is encountered.Modifier and Type | Field and Description |
---|---|
private java.util.List<NotificationAction> |
notificationActions
the list of actions associated with this task
|
Constructor and Description |
---|
NotificationTask() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationAction(NotificationAction action)
adds an notificatin action this task.
|
protected boolean |
automodeEnabledTask()
returns if this task should be executed in auto mode
|
void |
execute(NotificationEvent event,
NotificationManager manager)
called to execute the notification task, but this method
only takes care that we are in the even dispatcher thread
|
protected void |
executeActions(NotificationEvent event,
NotificationManager manager)
called to execute the notification task
|
abstract NotificationEventID |
getEventID() |
java.util.List<NotificationAction> |
getNotificationActions() |
private java.util.List<NotificationAction> notificationActions
public java.util.List<NotificationAction> getNotificationActions()
public void addNotificationAction(NotificationAction action)
action
- the NotificationAction to be addedpublic void execute(NotificationEvent event, NotificationManager manager)
event
- the NotificationEvent triggering this taskmanager
- the NotificationManager to which this
tasks belongs toprotected void executeActions(NotificationEvent event, NotificationManager manager)
manager
- the NotificationManager to which this
tasks belongs toevent
- the NotificationEvent triggering this taskpublic abstract NotificationEventID getEventID()
protected boolean automodeEnabledTask()