Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.notification.event
Class NotificationEventTypeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.notification.event.NotificationEventTypeEvent
All Implemented Interfaces:
Serializable

public class NotificationEventTypeEvent
extends EventObject

Fired any time an event type is added or removed.

Author:
Emil Ivov, Yana Stamcheva
See Also:
Serialized Form

Field Summary
static String EVENT_TYPE_ADDED
          Indicates that a new event type is added.
static String EVENT_TYPE_REMOVED
          Indicates that an event type was removed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NotificationEventTypeEvent(NotificationService source, String eventType, String sourceEventType)
          Creates an instance of this event according to the specified type.
 
Method Summary
 String getEventType()
          The type of this event.
 String getSourceEventType()
          Returns the eventType, for which this event is about.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_TYPE_ADDED

public static final String EVENT_TYPE_ADDED
Indicates that a new event type is added.

See Also:
Constant Field Values

EVENT_TYPE_REMOVED

public static final String EVENT_TYPE_REMOVED
Indicates that an event type was removed.

See Also:
Constant Field Values
Constructor Detail

NotificationEventTypeEvent

public NotificationEventTypeEvent(NotificationService source,
                                  String eventType,
                                  String sourceEventType)
Creates an instance of this event according to the specified type.

Parameters:
source - the NotificationService that dispatched this event
eventType - the type of this event. One of the static fields declared in this class
sourceEventType - the event type for which this event occured
Method Detail

getSourceEventType

public String getSourceEventType()
Returns the eventType, for which this event is about.

Returns:
the eventType, for which this event is about.

getEventType

public String getEventType()
The type of this event. One of EVENT_TYPE_XXX constants declared in this class.

Returns:
the type of this event

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.