|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.gui.AbstractPluginComponent
net.java.sip.communicator.plugin.exampleplugin.ExamplePluginMenuItem
public class ExamplePluginMenuItem
The ExamplePluginMenuItem is a JMenuItem that implements
the PluginComponent interface. The PluginComponent
interface allows us to add this menu item in the user interface bundle by
registering it through the the bundle context
(see ExamplePluginActivator.start(org.osgi.framework.BundleContext)).
| Constructor Summary | |
|---|---|
ExamplePluginMenuItem()
Creates an instance of ExamplePluginMenuItem. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Listens for events triggered by user clicks on this menu item. |
Object |
getComponent()
Returns the component that should be added. |
String |
getName()
Returns the name of this plugin component. |
void |
setCurrentContact(MetaContact metaContact)
Sets the current 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 |
|---|
public ExamplePluginMenuItem()
| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic Object getComponent()
PluginComponent
getComponent in interface PluginComponentpublic String getName()
PluginComponent
getName in interface PluginComponentpublic void setCurrentContact(MetaContact metaContact)
setCurrentContact in interface PluginComponentsetCurrentContact in class AbstractPluginComponentmetaContact - the MetaContact to set.PluginComponent.setCurrentContact(MetaContact)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||