net.java.sip.communicator.service.contactlist.event
Class MetaContactMovedEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
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
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.
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.
Distributable under LGPL license.