/* * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package net.java.sip.communicator.service.notification.event; import java.util.*; import net.java.sip.communicator.service.notification.*; /** * Fired any time an event type is added or removed. * * @author Emil Ivov * @author Yana Stamcheva */ public class NotificationEventTypeEvent extends EventObject { /** * Indicates that a new event type is added. */ public static final String EVENT_TYPE_ADDED = "EventTypeAdded"; /** * Indicates that an event type was removed. */ public static final String EVENT_TYPE_REMOVED = "EventTypeRemoved"; /** * The type of the event that a new action is being added for. */ private String sourceEventType = null; /** * The type of this event. One of the static field constants declared in * this class. */ private String eventType = null; /** * Creates an instance of this event according to the specified type. * * @param source the <tt>NotificationService</tt> that dispatched this event * @param eventType the type of this event. One of the static fields * declared in this class * @param sourceEventType the event type for which this event occured */ public NotificationEventTypeEvent( NotificationService source, String eventType, String sourceEventType) { super(source); this.eventType = eventType; this.sourceEventType = sourceEventType; } /** * Returns the <tt>eventType</tt>, for which this event is about. * * @return the <tt>eventType</tt>, for which this event is about. */ public String getSourceEventType() { return sourceEventType; } /** * The type of this event. One of EVENT_TYPE_XXX constants declared in this * class. * * @return the type of this event */ public String getEventType() { return eventType; } }