org.jivesoftware.spark.ui
Interface ContactGroupListener

All Known Implementing Classes:
ContactList

public interface ContactGroupListener

The ContactGroupListener interface is one of the interfaces extension writers use to add functionality to Spark.

In general, you implement this interface in order to listen for mouse and key events on ContactGroups within the Spark client ContactList.


Method Summary
 void contactGroupPopup(java.awt.event.MouseEvent e, ContactGroup group)
          Notifies the user that a Popup event has occured on the ContactGroup title bar.
 void contactItemAdded(ContactItem item)
          Notifies a user that a new ContactItem has been added to the ContactGroup.
 void contactItemClicked(ContactItem item)
          Notifies the user that a ContactItem within the ContactGroup has been clicked.
 void contactItemDoubleClicked(ContactItem item)
          Notifies the user that a ContactItem within the ContactGroup has been double-clicked.
 void contactItemRemoved(ContactItem item)
          Notifies the user that a ContactItem has been removed from a ContactGroup.
 void showPopup(java.awt.event.MouseEvent e, java.util.Collection items)
          Deprecated. see ContextMenuListener
 void showPopup(java.awt.event.MouseEvent e, ContactItem item)
          Deprecated. see ContextMenuListener
 

Method Detail

contactItemAdded

void contactItemAdded(ContactItem item)
Notifies a user that a new ContactItem has been added to the ContactGroup.

Parameters:
item - the ContactItem.

contactItemRemoved

void contactItemRemoved(ContactItem item)
Notifies the user that a ContactItem has been removed from a ContactGroup.

Parameters:
item - the ContactItem removed.

contactItemDoubleClicked

void contactItemDoubleClicked(ContactItem item)
Notifies the user that a ContactItem within the ContactGroup has been double-clicked.

Parameters:
item - the ContactItem double clicked.

contactItemClicked

void contactItemClicked(ContactItem item)
Notifies the user that a ContactItem within the ContactGroup has been clicked.

Parameters:
item - the ContactItem clicked.

showPopup

void showPopup(java.awt.event.MouseEvent e,
               ContactItem item)
Deprecated. see ContextMenuListener

Notifies the user that a popup call has occured on the ContactGroup.

Parameters:
e - the MouseEvent that triggered the event.
item - the ContactItem clicked within the ContactGroup.

showPopup

void showPopup(java.awt.event.MouseEvent e,
               java.util.Collection items)
Deprecated. see ContextMenuListener

Notifies the user that a popup call has occured on the ContactGroup.

Parameters:
e - the MouseEvent that triggered the event.
items - the ContactItems within the ContactGroup.

contactGroupPopup

void contactGroupPopup(java.awt.event.MouseEvent e,
                       ContactGroup group)
Notifies the user that a Popup event has occured on the ContactGroup title bar.

Parameters:
e - the MouseEvent that triggered the event.
group - the ContactGroup.