ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.conversation
Class InterfacePanelFactory

java.lang.Object
  |
  +--com.ibm.able.conversation.InterfacePanelFactory

public class InterfacePanelFactory
extends java.lang.Object

This class represents a factory of MessageFormInterfacePanels. A MessageFormInterfacePanel provides a user-interface for entering data to create the respective message form.

It maintains a table of fully qualified class names of message-forms and the fully qualified class names of their corresponding interface panels. It provides static member functions to create an instance of an interface panel given the object of the messageform and for adding new entries to the table of interface panels.

OLD VERSION -- TO BE UPDATED


Constructor Summary
InterfacePanelFactory()
           
 
Method Summary
static void addInterfacePanel(java.lang.String messageFormClass, java.lang.String interfacePanelClass)
          Adds an entry to the local table for a message form and its corresponding interface panel
static MessageFormInterfacePanel getInterfacePanel(AbleJasConversationAgent agent, MessageForm messageForm)
          Returns a MessageFormInterfacePanel for the message form object by looking up the internal table for the class name of the message form and instantiating a new object of the corresponding message form interface panel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfacePanelFactory

public InterfacePanelFactory()
Method Detail

getInterfacePanel

public static MessageFormInterfacePanel getInterfacePanel(AbleJasConversationAgent agent,
                                                          MessageForm messageForm)
Returns a MessageFormInterfacePanel for the message form object by looking up the internal table for the class name of the message form and instantiating a new object of the corresponding message form interface panel

Parameters:
messageForm - the message form object

Returns:
the corresponding message form interface panel object if the internal table has an entry for the message form, null otherwise

addInterfacePanel

public static void addInterfacePanel(java.lang.String messageFormClass,
                                     java.lang.String interfacePanelClass)
Adds an entry to the local table for a message form and its corresponding interface panel

Parameters:
messageFormClass - fully qualified class name of the message form

interfacePanelClass - fully qualified class name of the message form interface panel

ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003