diff options
author | Yana Stamcheva <yana@jitsi.org> | 2008-03-18 15:24:30 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2008-03-18 15:24:30 +0000 |
commit | 834eabfa774027207c735af86c40aac1fdc8e3c2 (patch) | |
tree | 7ee281fd69d8b55dd9c31110d88f3f241c531f68 /src/net/java/sip/communicator/plugin/branding | |
parent | a58a2d587ea8e8c54aaf8fd629c368fab1ac9844 (diff) | |
download | jitsi-834eabfa774027207c735af86c40aac1fdc8e3c2.zip jitsi-834eabfa774027207c735af86c40aac1fdc8e3c2.tar.gz jitsi-834eabfa774027207c735af86c40aac1fdc8e3c2.tar.bz2 |
- plugin component listener and events were used only in the implementation, so I have moved them there
- Introduced PluginComponent interface to be implemented by all modules that would like add a component( button, menu item, etc.) in the gui.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/branding')
-rw-r--r-- | src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java new file mode 100644 index 0000000..c60206e --- /dev/null +++ b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java @@ -0,0 +1,61 @@ +/* + * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package net.java.sip.communicator.plugin.branding; + +import java.awt.event.*; + +import javax.swing.*; + +import net.java.sip.communicator.service.contactlist.*; +import net.java.sip.communicator.service.gui.*; + +public class AboutWindowPluginComponent + implements PluginComponent +{ + private JMenuItem aboutMenuItem + = new JMenuItem(Resources.getString("aboutMenuEntry")); + + public AboutWindowPluginComponent() + { + aboutMenuItem.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent e) + { + AboutWindow aboutWindow = new AboutWindow(null); + aboutWindow.setVisible(true); + } + }); + } + + public Object getComponent() + { + return aboutMenuItem; + } + + public String getConstraints() + { + return null; + } + + public Container getContainer() + { + return Container.CONTAINER_HELP_MENU; + } + + public String getName() + { + return Resources.getString("aboutMenuEntry"); + } + + public void setCurrentContact(MetaContact metaContact) + { + } + + public void setCurrentContactGroup(MetaContactGroup metaGroup) + { + } +} |