Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class NotificationActionTypeEvent
extends EventObject

Fired any time an action type is added, removed or changed.

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

Field Summary
static String ACTION_ADDED
          Indicates that a new action is added to an event type.
static String ACTION_CHANGED
          Indicates that an action for a given event type has changed.
static String ACTION_REMOVED
          Indicates that an action was removed for a given event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NotificationActionTypeEvent(NotificationService source, String eventType, String sourceEventType, NotificationAction actionHandler)
          Creates an instance of this event according to the specified type.
 
Method Summary
 NotificationAction getActionHandler()
          Returns the NotificationActionHandler that handles the action, for which this event is about.
 String getEventType()
          The type of this event.
 String getSourceEventType()
          Returns the event type, to which the given action belongs.
 
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

ACTION_ADDED

public static final String ACTION_ADDED
Indicates that a new action is added to an event type.

See Also:
Constant Field Values

ACTION_REMOVED

public static final String ACTION_REMOVED
Indicates that an action was removed for a given event type.

See Also:
Constant Field Values

ACTION_CHANGED

public static final String ACTION_CHANGED
Indicates that an action for a given event type has changed. For example the action descriptor is changed.

See Also:
Constant Field Values
Constructor Detail

NotificationActionTypeEvent

public NotificationActionTypeEvent(NotificationService source,
                                   String eventType,
                                   String sourceEventType,
                                   NotificationAction actionHandler)
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
actionHandler - the NotificationActionHandler that handles the given action
Method Detail

getSourceEventType

public String getSourceEventType()
Returns the event type, to which the given action belongs.

Returns:
the event type, to which the given action belongs

getActionHandler

public NotificationAction getActionHandler()
Returns the NotificationActionHandler that handles the action, for which this event is about.

Returns:
the NotificationActionHandler that handles the action, for which this event is about.

getEventType

public String getEventType()
The type of this event. One of ACTION_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.