Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui
Class DefaultContactEventHandler.RunMessageWindow

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.DefaultContactEventHandler.RunMessageWindow
All Implemented Interfaces:
Runnable
Enclosing class:
DefaultContactEventHandler

public static class DefaultContactEventHandler.RunMessageWindow
extends Object
implements Runnable

Runs the chat window for the specified contact. We examine different cases here, depending on the chat window mode. In mode "Open messages in new window" a new window is opened for the given MetaContact if there's no opened window for it, otherwise the existing chat window is made visible and focused. In mode "Group messages in one chat window" a JTabbedPane is used to show chats for different contacts in ona window. A new tab is opened for the given MetaContact if there's no opened tab for it, otherwise the existing chat tab is selected and focused.

Author:
Yana Stamcheva

Constructor Summary
DefaultContactEventHandler.RunMessageWindow(MetaContact metaContact, Contact protocolContact)
          Creates a chat window
 
Method Summary
 void run()
          Opens a chat window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContactEventHandler.RunMessageWindow

public DefaultContactEventHandler.RunMessageWindow(MetaContact metaContact,
                                                   Contact protocolContact)
Creates a chat window

Parameters:
metaContact -
protocolContact -
Method Detail

run

public void run()
Opens a chat window

Specified by:
run in interface Runnable

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.