Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.otr
Class OtrMetaContactMenu

java.lang.Object
  extended by net.java.sip.communicator.service.gui.AbstractPluginComponent
      extended by net.java.sip.communicator.plugin.otr.OtrMetaContactMenu
All Implemented Interfaces:
ActionListener, EventListener, PopupMenuListener, PluginComponent

public class OtrMetaContactMenu
extends AbstractPluginComponent
implements ActionListener, PopupMenuListener

Author:
George Politis, Lubomir Marinov

Constructor Summary
OtrMetaContactMenu(Container container)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Component getComponent()
          Returns the component that should be added.
 String getName()
          Returns the name of this plugin component.
 void popupMenuCanceled(PopupMenuEvent e)
           
 void popupMenuWillBecomeInvisible(PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(PopupMenuEvent e)
           
 void setCurrentContact(MetaContact metaContact)
          Sets the current meta contact.
 
Methods inherited from class net.java.sip.communicator.service.gui.AbstractPluginComponent
getConstraints, getContainer, getPositionIndex, isNativeComponent, setCurrentContact, setCurrentContactGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OtrMetaContactMenu

public OtrMetaContactMenu(Container container)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getComponent

public Component getComponent()
Description copied from interface: PluginComponent
Returns the component that should be added. This method should return a valid AWT, SWT or Swing object in order to appear properly in the user interface.

Specified by:
getComponent in interface PluginComponent
Returns:
the component that should be added.

getName

public String getName()
Description copied from interface: PluginComponent
Returns the name of this plugin component. This name could be used as a label when the component is added to a container, which requires a title. A container that could request a name is for example a tabbed pane.

Specified by:
getName in interface PluginComponent
Returns:
the name of this plugin component

popupMenuCanceled

public void popupMenuCanceled(PopupMenuEvent e)
Specified by:
popupMenuCanceled in interface PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface PopupMenuListener

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface PopupMenuListener

setCurrentContact

public void setCurrentContact(MetaContact metaContact)
Description copied from interface: PluginComponent
Sets the current meta contact. Meant to be used by plugin components that are interested of the current contact. The current contact could be the contact currently selected in the contact list or the contact for the currently selected chat, etc. It depends on the container, where this component is meant to be added.

Specified by:
setCurrentContact in interface PluginComponent
Overrides:
setCurrentContact in class AbstractPluginComponent
Parameters:
metaContact - the current meta contact

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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