public class GenericEvent
extends java.util.EventObject
Constructor and Description |
---|
GenericEvent(ProtocolProviderService sourceProtocolProvider,
Contact from,
java.lang.String eventName,
java.lang.String eventValue,
Contact sourceContact)
Constructs a GenericEvent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventName()
The event name.
|
java.lang.String |
getEventValue()
The event value.
|
Contact |
getFrom()
The contact which is the source of this event.
|
Contact |
getSourceContact()
Returns The source contact for this event.
|
ProtocolProviderService |
getSourceProvider()
Returns the ProtocolProviderService which originated this event.
|
java.lang.String |
toString()
Returns a String representation of this GenericEvent.
|
public GenericEvent(ProtocolProviderService sourceProtocolProvider, Contact from, java.lang.String eventName, java.lang.String eventValue, Contact sourceContact)
sourceProtocolProvider
- The object on which the Event initially occurred.from
- the contact from which this event is coming from.eventName
- the event name.eventValue
- the event value.sourceContact
- contact for this event.java.lang.IllegalArgumentException
- if source is null.public java.lang.String getEventName()
public java.lang.String getEventValue()
public Contact getFrom()
public ProtocolProviderService getSourceProvider()
public java.lang.String toString()
toString
in class java.util.EventObject
public Contact getSourceContact()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.