Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.whiteboard
Class WhiteboardMenuItem

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

public class WhiteboardMenuItem
extends AbstractPluginComponent
implements ActionListener

WhiteboardMenuItem

Author:
Julien Waechter

Constructor Summary
WhiteboardMenuItem(WhiteboardSessionManager session)
          WhiteboardMenuItem constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs: user start a whiteboard session.
 Object getComponent()
          Returns the component that should be added.
 String getName()
          Returns the name of this plugin component.
 void setCurrentContact(Contact contact)
          Sets the current contact.
 void setCurrentContact(MetaContact metaContact)
          Sets the current meta contact.
 void setCurrentContactGroup(MetaContactGroup metaGroup)
          Sets the current meta group.
 
Methods inherited from class net.java.sip.communicator.service.gui.AbstractPluginComponent
getConstraints, getContainer, getPositionIndex, isNativeComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteboardMenuItem

public WhiteboardMenuItem(WhiteboardSessionManager session)
WhiteboardMenuItem constructor.

Parameters:
session - the whiteboard session manager
Method Detail

setCurrentContact

public void setCurrentContact(Contact contact)
Description copied from interface: PluginComponent
Sets the current contact. Meant to be used by plugin components that are interested of the current contact. The current contact is the contact for the currently selected chat transport.

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

setCurrentContact

public void setCurrentContact(MetaContact metaContact)
Sets the current meta contact.

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

setCurrentContactGroup

public void setCurrentContactGroup(MetaContactGroup metaGroup)
Sets the current meta group.

Specified by:
setCurrentContactGroup in interface PluginComponent
Overrides:
setCurrentContactGroup in class AbstractPluginComponent
Parameters:
metaGroup - the current meta contact group

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when an action occurs: user start a whiteboard session.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - event

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.