net.java.sip.communicator.plugin.otr
Class OtrContactMenu
java.lang.Object
net.java.sip.communicator.plugin.otr.OtrContactMenu
- All Implemented Interfaces:
- ActionListener, EventListener, ScOtrEngineListener, ScOtrKeyManagerListener
class OtrContactMenu
- extends Object
- implements ActionListener, ScOtrEngineListener, ScOtrKeyManagerListener
A special JMenu that holds the menu items for controlling the
Off-the-Record functionality for a specific contact.
- Author:
- George Politis, Lubomir Marinov
|
Constructor Summary |
OtrContactMenu(Contact contact,
boolean inMacOSXScreenMenuBar,
JMenu menu,
boolean isSeparateMenu)
The OtrContactMenu constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OtrContactMenu
public OtrContactMenu(Contact contact,
boolean inMacOSXScreenMenuBar,
JMenu menu,
boolean isSeparateMenu)
- The OtrContactMenu constructor.
- Parameters:
contact - the Contact this menu refers to.inMacOSXScreenMenuBar - true if the new menu is to be
displayed in the Mac OS X screen menu bar; false, otherwisemenu - the parent menu
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener
contactPolicyChanged
public void contactPolicyChanged(Contact contact)
- Specified by:
contactPolicyChanged in interface ScOtrEngineListener
contactVerificationStatusChanged
public void contactVerificationStatusChanged(Contact contact)
- Specified by:
contactVerificationStatusChanged in interface ScOtrKeyManagerListener
dispose
void dispose()
- Disposes of this instance by making it available for garage collection
e.g. removes the listeners it has installed on global instances such as
OtrActivator#scOtrEngine and
OtrActivator#scOtrKeyManager.
globalPolicyChanged
public void globalPolicyChanged()
- Specified by:
globalPolicyChanged in interface ScOtrEngineListener
sessionStatusChanged
public void sessionStatusChanged(Contact contact)
- Specified by:
sessionStatusChanged in interface ScOtrEngineListener
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.