public class SubscriptionMovedEvent
extends java.util.EventObject
Constructor and Description |
---|
SubscriptionMovedEvent(Contact sourceContact,
ProtocolProviderService sourceProvider,
ContactGroup oldParent,
ContactGroup newParent)
Creates an event instance with the specified source contact and old and
new parent.
|
Modifier and Type | Method and Description |
---|---|
ContactGroup |
getNewParentGroup()
Returns a reference to the ContactGroup that currently contains the
source contact.
|
ContactGroup |
getOldParentGroup()
Returns a reference to the ContactGroup that contained the source contact
before it was moved.
|
Contact |
getSourceContact()
Returns a reference to the contact that has been moved.
|
ProtocolProviderService |
getSourceProvider()
Returns the provider that the source contact belongs to.
|
java.lang.String |
toString()
Returns a String representation of this ContactPresenceStatusChangeEvent
|
public SubscriptionMovedEvent(Contact sourceContact, ProtocolProviderService sourceProvider, ContactGroup oldParent, ContactGroup newParent)
sourceContact
- the Contact that has been moved.sourceProvider
- a reference to the ProtocolProviderService
that the source Contact belongs to.oldParent
- the ContactGroup that has previously been
the parentnewParent
- the new ContactGroup parent of
sourceContactpublic Contact getSourceContact()
public ContactGroup getOldParentGroup()
public ContactGroup getNewParentGroup()
public ProtocolProviderService getSourceProvider()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.