public class ContactResourceEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
RESOURCE_ADDED
Indicates that the ContactResourceEvent instance was triggered
by the add of a ContactResource.
|
static int |
RESOURCE_MODIFIED
Indicates that the ContactResourceEvent instance was triggered
by the modification of a ContactResource.
|
static int |
RESOURCE_REMOVED
Indicates that the ContactResourceEvent instance was triggered
by the removal of a ContactResource.
|
Constructor and Description |
---|
ContactResourceEvent(Contact source,
ContactResource contactResource,
int eventType)
Creates an instance of ContactResourceEvent by specifying the
source, where this event occurred and the concerned
ContactSource.
|
Modifier and Type | Method and Description |
---|---|
Contact |
getContact()
Returns the Contact, which is the source of this event.
|
ContactResource |
getContactResource()
Returns the ContactResource that is concerned by the change.
|
int |
getEventType()
Returns the type of the event.
|
public static final int RESOURCE_ADDED
public static final int RESOURCE_REMOVED
public static final int RESOURCE_MODIFIED
public ContactResourceEvent(Contact source, ContactResource contactResource, int eventType)
source
- the source where this event occurredcontactResource
- the ContactResource that is concerned by
the changeeventType
- an integer representing the type of this event. One of
the types defined in this class: RESOURCE_ADDED, RESOURCE_REMOVED,
RESOURCE_MODIFIED.public Contact getContact()
public ContactResource getContactResource()
public int getEventType()
One of the event types defined in this class: RESOURCE_ADDED, RESOURCE_REMOVED, RESOURCE_MODIFIED.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.