org.jivesoftware.spark.ui
Interface ContactListListener


public interface ContactListListener

The ContactListListener interface is used to listen for model changes within the Contact List.

In general, you implement this interface in order to listen for adding and removal of both ContactItems and ContactGroups.


Method Summary
 void contactGroupAdded(ContactGroup group)
          Called when a ContactGroup has been added to the ContactList.
 void contactGroupRemoved(ContactGroup group)
          Called when a ContactGroup has been removed from the ContactList.
 void contactItemAdded(ContactItem item)
          Notified when a ContactItem has been added to the ContactList.
 void contactItemRemoved(ContactItem item)
          Notified when a ContactItem has been removed from the ContactList.
 

Method Detail

contactItemAdded

void contactItemAdded(ContactItem item)
Notified when a ContactItem has been added to the ContactList.

Parameters:
item - the ContactItem added.

contactItemRemoved

void contactItemRemoved(ContactItem item)
Notified when a ContactItem has been removed from the ContactList.

Parameters:
item - the ContactItem removed.

contactGroupAdded

void contactGroupAdded(ContactGroup group)
Called when a ContactGroup has been added to the ContactList.

Parameters:
group - the ContactGroup.

contactGroupRemoved

void contactGroupRemoved(ContactGroup group)
Called when a ContactGroup has been removed from the ContactList.

Parameters:
group - the ContactGroup.