com.valhalla.jbother
Class MessageDelegator

java.lang.Object
  extended bycom.valhalla.jbother.MessageDelegator

public class MessageDelegator
extends java.lang.Object

Displays a ConversationPanel in the TabFrame or in a containing JFrame depending on whether or not the application is set to use a tabbed window

Version:
1.1
Author:
Adam Olsen

Method Summary
 void frontFrame(ConversationPanel panel)
          If the panel is contained in a JFrame, this method brings that frame to the front of the screen
static MessageDelegator getInstance()
           
 java.util.Vector getPanels()
           
 void removePanel(ConversationPanel panel)
          Removes a panel from the panels Vector
 void showPanel(ConversationPanel panel)
          Shows a panel using the TabFrame or a containing frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MessageDelegator getInstance()
Returns:
the MessageDelegator instance

showPanel

public void showPanel(ConversationPanel panel)
Shows a panel using the TabFrame or a containing frame

Parameters:
panel - the panel to show

frontFrame

public void frontFrame(ConversationPanel panel)
If the panel is contained in a JFrame, this method brings that frame to the front of the screen

Parameters:
panel - the panel containing the frame to bring to the front

removePanel

public void removePanel(ConversationPanel panel)
Removes a panel from the panels Vector

Parameters:
panel - the panel to remove

getPanels

public java.util.Vector getPanels()
Returns:
the Vector containing a list of all the available ConversationPanels