apps.conceptmap.utility
Class MessageFactory

java.lang.Object
  extended by apps.conceptmap.utility.MessageFactory

public class MessageFactory
extends java.lang.Object

A factory for creating Message objects.


Field Summary
static int OK_CANCEL_MESSAGE
          The ok cancel message.
static int YES_NO_MESSAGE
          The yes no message.
 
Method Summary
 OptionMessage createOptionMessage(ContentSystem contentSystem, GraphManager gManager, GraphComponent parentComponent, java.lang.String text, int messageType)
          Creates a new Message object.
static MessageFactory getInstance()
          Gets the single instance of MessageFactory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK_CANCEL_MESSAGE

public static int OK_CANCEL_MESSAGE
The ok cancel message.


YES_NO_MESSAGE

public static int YES_NO_MESSAGE
The yes no message.

Method Detail

getInstance

public static MessageFactory getInstance()
Gets the single instance of MessageFactory.

Returns:
single instance of MessageFactory

createOptionMessage

public OptionMessage createOptionMessage(ContentSystem contentSystem,
                                         GraphManager gManager,
                                         GraphComponent parentComponent,
                                         java.lang.String text,
                                         int messageType)
Creates a new Message object.

Parameters:
contentSystem - the content system
gManager - the g manager
parentComponent - the parent component
text - the text
messageType - the message type
Returns:
the option message