public class MetaContactGroupEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CHILD_CONTACTS_REORDERED
Indicates that the MetaContactGroupEvent instance was triggered by the
fact that child contacts were reordered in the source group.
|
static int |
CONTACT_GROUP_ADDED_TO_META_GROUP
Indicates that the MetaContactGroupEvent instance was triggered by adding
a protocol specific ContactGroup to the source MetaContactGroup.
|
static int |
CONTACT_GROUP_REMOVED_FROM_META_GROUP
Indicates that the MetaContactGroupEvent instance was triggered by the
removal of a protocol specific ContactGroup in the source
MetaContactGroup.
|
static int |
CONTACT_GROUP_RENAMED_IN_META_GROUP
Indicates that the MetaContactGroupEvent instance was triggered by the
renaming of a protocol specific ContactGroup in the source
MetaContactGroup.
|
static int |
META_CONTACT_GROUP_ADDED
Indicates that the MetaContactGroupEvent instance was triggered by
adding a MetaContactGroup.
|
static int |
META_CONTACT_GROUP_REMOVED
Indicates that the MetaContactGroupEvent instance was triggered by the
removal of an existing MetaContactGroup.
|
static int |
META_CONTACT_GROUP_RENAMED
Indicates that the MetaContactGroupEvent instance was triggered by the
renaming of an existing MetaContactGroup.
|
Constructor and Description |
---|
MetaContactGroupEvent(MetaContactGroup source,
ProtocolProviderService provider,
ContactGroup sourceProtoGroup,
int eventID)
Creates a new MetaContactGroup 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 |
getSourceMetaContactGroup()
Returns the source MetaContactGroup.
|
ContactGroup |
getSourceProtoGroup()
Returns the proto group associated with this event or null if the event
does not concern a particular source group.
|
ProtocolProviderService |
getSourceProvider()
Returns the provider that the source contact belongs to.
|
java.lang.String |
toString()
Returns a String representation of this MetaContactGroupEvent
|
public static final int META_CONTACT_GROUP_ADDED
public static final int META_CONTACT_GROUP_REMOVED
public static final int CONTACT_GROUP_REMOVED_FROM_META_GROUP
public static final int CHILD_CONTACTS_REORDERED
public static final int CONTACT_GROUP_RENAMED_IN_META_GROUP
public static final int CONTACT_GROUP_ADDED_TO_META_GROUP
public static final int META_CONTACT_GROUP_RENAMED
public MetaContactGroupEvent(MetaContactGroup source, ProtocolProviderService provider, ContactGroup sourceProtoGroup, int eventID)
source
- the MetaContactGroup instance that is added to the MetaContactListprovider
- the ProtocolProviderService instance where this event
occurredsourceProtoGroup
- the proto group associated with this event or
null if the event does not concern a particular source group.eventID
- one of the METACONTACT_XXX static fields indicating the
nature of the event.public ProtocolProviderService getSourceProvider()
public ContactGroup getSourceProtoGroup()
public MetaContactGroup getSourceMetaContactGroup()
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.