public class ProtoContactEvent
extends java.beans.PropertyChangeEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTO_CONTACT_ADDED
Indicates that the MetaContactEvent instance was triggered by the
a protocol specific contact to a new MetaContact parent.
|
static java.lang.String |
PROTO_CONTACT_MODIFIED
Indicates that this event instance was triggered by changing a protocol
specific contact in some way.
|
static java.lang.String |
PROTO_CONTACT_MOVED
Indicates that the MetaContactEvent instance was triggered by moving
addition of a protocol specific contact to an existing MetaContact.
|
static java.lang.String |
PROTO_CONTACT_REMOVED
Indicates that the MetaContactEvent instance was triggered by the
removal of a protocol specific contact from an existing MetaContact.
|
Constructor and Description |
---|
ProtoContactEvent(Contact source,
java.lang.String eventName,
MetaContact oldParent,
MetaContact newParent)
Creates an instance of this ProtoContactEvent.
|
Modifier and Type | Method and Description |
---|---|
MetaContact |
getNewParent()
Returns the MetaContact that is parent of the source contact
after the event occurred or null for a removed contact or when irrelevant.
|
MetaContact |
getOldParent()
Returns the MetaContact that was parent of the source contact
before the event occurred or null for a new contact or when irrelevant.
|
MetaContact |
getParent()
Returns the MetaContact that is the most relevant parent of
the source proto Contact.
|
Contact |
getProtoContact()
Returns the protoContact that this event is about.
|
public static final java.lang.String PROTO_CONTACT_REMOVED
public static final java.lang.String PROTO_CONTACT_ADDED
public static final java.lang.String PROTO_CONTACT_MOVED
public static final java.lang.String PROTO_CONTACT_MODIFIED
public ProtoContactEvent(Contact source, java.lang.String eventName, MetaContact oldParent, MetaContact newParent)
source
- the proto Contact that this event is about.eventName
- the name of the event, one of the PROTO_CONTACT_XXX
fields.oldParent
- the MetaContact that was parent of the source
contact before the event occurred or null for a new contact or when
irrelevant.newParent
- the MetaContact that is parent of the source
contact after the event occurred or null for a removed contact or when
irrelevant.public Contact getProtoContact()
public MetaContact getOldParent()
public MetaContact getNewParent()
public MetaContact getParent()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.