public class Notification
extends java.lang.Object
Constructor and Description |
---|
Notification(java.lang.String eventType)
Creates an instance of EventNotification by specifying the
event type as declared by the bundle registering it.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addAction(NotificationAction action)
Adds the given actionType to the list of actions for this event
notifications.
|
NotificationAction |
getAction(java.lang.String actionType)
Returns the Action corresponding to the given
actionType.
|
java.util.Map<java.lang.String,NotificationAction> |
getActions()
Returns the set of actions registered for this event notification.
|
boolean |
isActive()
Indicates if this event notification is currently active.
|
void |
removeAction(java.lang.String actionType)
Removes the action corresponding to the given actionType.
|
void |
setActive(boolean isActive)
Activates or deactivates this event notification.
|
public Notification(java.lang.String eventType)
eventType
- the name of the eventpublic java.lang.Object addAction(NotificationAction action)
action
- the the handler that will process the given action
type.public void removeAction(java.lang.String actionType)
actionType
- one of NotificationService.ACTION_XXX constantspublic java.util.Map<java.lang.String,NotificationAction> getActions()
public NotificationAction getAction(java.lang.String actionType)
actionType
- one of NotificationService.ACTION_XXX constantspublic boolean isActive()
public void setActive(boolean isActive)
isActive
- indicates if this event notification is active
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.