Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.contactinfo
Class ContactInfoMenuItem

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

public class ContactInfoMenuItem
extends AbstractPluginComponent
implements ActionListener

Author:
Adam Goldstein

Constructor Summary
ContactInfoMenuItem()
          Creates a ContactInfoMenuItem.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Initializes and shows the contact details dialog.
 Object getComponent()
          Returns the component that should be added.
 String getName()
          Returns the name of this plugin component.
 void setCurrentContact(MetaContact metaContact)
          Sets the currently selected MetaContact.
 
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

ContactInfoMenuItem

public ContactInfoMenuItem()
Creates a ContactInfoMenuItem.

Method Detail

setCurrentContact

public void setCurrentContact(MetaContact metaContact)
Sets the currently selected MetaContact.

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

actionPerformed

public void actionPerformed(ActionEvent e)
Initializes and shows the contact details dialog.

Specified by:
actionPerformed in interface ActionListener

getComponent

public Object 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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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