|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.notification.Notification
public class Notification
Represents an event notification.
| Constructor Summary | |
|---|---|
Notification(String eventType)
Creates an instance of EventNotification by specifying the event type as declared by the bundle registering it. |
|
| Method Summary | |
|---|---|
Object |
addAction(NotificationAction action)
Adds the given actionType to the list of actions for this event notifications. |
NotificationAction |
getAction(String actionType)
Returns the Action corresponding to the given actionType. |
Map<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(String actionType)
Removes the action corresponding to the given actionType. |
void |
setActive(boolean isActive)
Activates or deactivates this event notification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notification(String eventType)
eventType - the name of the event| Method Detail |
|---|
public Object addAction(NotificationAction action)
action - the the handler that will process the given action
type.
public void removeAction(String actionType)
actionType - one of NotificationService.ACTION_XXX constantspublic Map<String,NotificationAction> getActions()
public NotificationAction getAction(String actionType)
actionType - one of NotificationService.ACTION_XXX constants
public boolean isActive()
public void setActive(boolean isActive)
isActive - indicates if this event notification is active
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||