public class ExamplePluginMenuItem extends AbstractPluginComponent implements java.awt.event.ActionListener
ExamplePluginActivator.start(org.osgi.framework.BundleContext)
).Constructor and Description |
---|
ExamplePluginMenuItem(PluginComponentFactory parentFactory)
Creates an instance of ExamplePluginMenuItem.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Listens for events triggered by user clicks on this menu item.
|
java.lang.Object |
getComponent()
Returns the component that should be added.
|
java.lang.String |
getName()
Returns the name of this plugin component.
|
void |
setCurrentContact(MetaContact metaContact)
Sets the current MetaContact.
|
getConstraints, getContainer, getParentFactory, getPositionIndex, isNativeComponent, setCurrentAccountID, setCurrentContact, setCurrentContact, setCurrentContactGroup
public ExamplePluginMenuItem(PluginComponentFactory parentFactory)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public java.lang.Object getComponent()
PluginComponent
getComponent
in interface PluginComponent
public java.lang.String getName()
PluginComponent
getName
in interface PluginComponent
public void setCurrentContact(MetaContact metaContact)
setCurrentContact
in interface PluginComponent
setCurrentContact
in class AbstractPluginComponent
metaContact
- the MetaContact to set.PluginComponent.setCurrentContact(MetaContact)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.