org.jivesoftware.spark.plugin
Interface ContextMenuListener


public interface ContextMenuListener

The ContextMenuListener allows implementors to add their own menu items to the context menu associated with this listener.


Method Summary
 boolean handleDefaultAction(java.awt.event.MouseEvent e)
          Called when the user double clicks on an item that has a popup menu.
 void poppingDown(javax.swing.JPopupMenu popup)
          Called just before the context menu closed.
 void poppingUp(java.lang.Object object, javax.swing.JPopupMenu popup)
          Called just before the context menu is popping up.
 

Method Detail

poppingUp

void poppingUp(java.lang.Object object,
               javax.swing.JPopupMenu popup)
Called just before the context menu is popping up.

Parameters:
object - the object the event was fired for.
popup - the PopupMenu to be displayed.

poppingDown

void poppingDown(javax.swing.JPopupMenu popup)
Called just before the context menu closed.

Parameters:
popup - the popup menu in the process of closing.

handleDefaultAction

boolean handleDefaultAction(java.awt.event.MouseEvent e)
Called when the user double clicks on an item that has a popup menu. Only one listener should return true from this menu.

Parameters:
e - the current mouse event
Returns:
true if user handles the default action.