Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chat.history
Class HistoryWindowManager

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chat.history.HistoryWindowManager

public class HistoryWindowManager
extends Object

Manages all history windows within the gui.

Author:
Yana Stamcheva

Constructor Summary
HistoryWindowManager()
           
 
Method Summary
 void addHistoryWindowForContact(Object historyContact, HistoryWindow historyWindow)
          Adds a history window for a given contact in the table of opened history windows.
 boolean containsHistoryWindowForContact(Object historyContact)
          Checks if there's an open history window for the given history contact.
 HistoryWindow getHistoryWindowForContact(Object historyContact)
          Returns the history window for the given contact.
 void removeHistoryWindowForContact(Object historyContact)
          Removes the history window for the given contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryWindowManager

public HistoryWindowManager()
Method Detail

containsHistoryWindowForContact

public boolean containsHistoryWindowForContact(Object historyContact)
Checks if there's an open history window for the given history contact.

Parameters:
historyContact - the contact to check for
Returns:
TRUE if there's an opened history window for the given contact, FALSE otherwise.

getHistoryWindowForContact

public HistoryWindow getHistoryWindowForContact(Object historyContact)
Returns the history window for the given contact.

Parameters:
historyContact - the contact to search for
Returns:
the history window for the given contact

addHistoryWindowForContact

public void addHistoryWindowForContact(Object historyContact,
                                       HistoryWindow historyWindow)
Adds a history window for a given contact in the table of opened history windows.

Parameters:
historyContact - the contact to add
historyWindow - the history window to add

removeHistoryWindowForContact

public void removeHistoryWindowForContact(Object historyContact)
Removes the history window for the given contact.

Parameters:
historyContact - the contact to remove the history window

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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