Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.contactlist.event
Class MetaContactMovedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
              extended by net.java.sip.communicator.service.contactlist.event.MetaContactMovedEvent
All Implemented Interfaces:
Serializable

public class MetaContactMovedEvent
extends MetaContactPropertyChangeEvent

Fired whenever a meta contact has been moved from one parent group to another. The event contains the old and new parents as well as a reference to the source contact.

Author:
Emil Ivov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
META_CONTACT_AVATAR_UPDATE, META_CONTACT_MODIFIED, META_CONTACT_MOVED, META_CONTACT_RENAMED, PROTO_CONTACT_ADDED, PROTO_CONTACT_MODIFIED, PROTO_CONTACT_MOVED, PROTO_CONTACT_REMOVED
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MetaContactMovedEvent(MetaContact sourceContact, MetaContactGroup oldParent, MetaContactGroup newParent)
          Createas an instance of this MetaContactMovedEvent using the specified arguments.
 
Method Summary
 MetaContactGroup getNewParent()
          Returns the new parent of this meta contact.
 MetaContactGroup getOldParent()
          Returns the old parent of this meta contact.
 
Methods inherited from class net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
getSourceMetaContact
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaContactMovedEvent

public MetaContactMovedEvent(MetaContact sourceContact,
                             MetaContactGroup oldParent,
                             MetaContactGroup newParent)
Createas an instance of this MetaContactMovedEvent using the specified arguments.

Parameters:
sourceContact - a reference to the MetaContact that this event is about.
oldParent - a reference to the MetaContactGroup that contained sourceContact before it was moved.
newParent - a refenrece to the MetaContactGroup that contains sourceContact after it was moved.
Method Detail

getOldParent

public MetaContactGroup getOldParent()
Returns the old parent of this meta contact.

Returns:
a reference to the MetaContactGroup that contained the source meta contact before it was moved.

getNewParent

public MetaContactGroup getNewParent()
Returns the new parent of this meta contact.

Returns:
a reference to the MetaContactGroup that contains the source meta contact after it was moved.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.