public class MetaContactEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
META_CONTACT_ADDED
Indicates that the MetaContactEvent instance was triggered by
adding a MetaContact.
|
static int |
META_CONTACT_MOVED
Indicates that the MetaContactEvent instance was triggered by moving
an existing MetaContact.
|
static int |
META_CONTACT_REMOVED
Indicates that the MetaContactEvent instance was triggered by the
removal of an existing MetaContact.
|
Constructor and Description |
---|
MetaContactEvent(MetaContact source,
MetaContactGroup parentGroup,
int eventID)
Creates a new MetaContact event according to the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventID()
Returns an event id specifying whether the type of this event (e.g.
|
MetaContactGroup |
getParentGroup()
Returns the MetaContactGroup that the MetaContact belongs to.
|
MetaContact |
getSourceMetaContact()
Returns the source MetaContact.
|
java.lang.String |
toString()
Returns a String representation of this MetaContactEvent
|
public static final int META_CONTACT_ADDED
public static final int META_CONTACT_REMOVED
public static final int META_CONTACT_MOVED
public MetaContactEvent(MetaContact source, MetaContactGroup parentGroup, int eventID)
source
- the MetaContact instance that is added to the MetaContactListparentGroup
- the MetaContactGroup underwhich the corresponding
MetaContact is locatedeventID
- one of the METACONTACT_XXX static fields indicating the
nature of the event.public MetaContact getSourceMetaContact()
public MetaContactGroup getParentGroup()
public java.lang.String toString()
toString
in class java.util.EventObject
public int getEventID()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.