wt.clients.widgets
Class MessageManager

java.lang.Object
  extended bywt.clients.widgets.MessageManager

public class MessageManager
extends Object

------------------------------------------------------------ This class contains several methods which will be useful when doing the internationalization and localization on the exception handling and the message display.


Field Summary
static int MAX
          Constant for the maximum of characters on the message dialog.
 
Constructor Summary
MessageManager()
           
 
Method Summary
static String chop(String msg)
          Method to chop the long exception messages into several lines.
static String getLocalizedMessage(ResourceBundle bundle, String key, Object[] params)
          Deprecated.  
static String getLocalizedValue(ResourceBundle bundle, String key)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX

public static final int MAX
Constant for the maximum of characters on the message dialog.

See Also:
Constant Field Values
Constructor Detail

MessageManager

public MessageManager()
Method Detail

chop

public static String chop(String msg)
Method to chop the long exception messages into several lines.

Parameters:
msg - Message to be chopped
Returns:
a multi-line string

getLocalizedMessage

public static String getLocalizedMessage(ResourceBundle bundle,
                                         String key,
                                         Object[] params)
Deprecated.  

Get the Localized message from the resource bundle. Developers should use WTMessage.getLocalizedMessage( )

Parameters:
bundle - The resource bundle to find the key
key - the key into the resource bundle
params - array of parameters used to format the message
Returns:
a formatted localized message from the resource bundle

getLocalizedValue

public static String getLocalizedValue(ResourceBundle bundle,
                                       String key)
Deprecated.  

Get the Localized value from the resource bundle. Developers should use WTMessage.getLocalizedMessage( ) with null parameters.

Parameters:
bundle - The resource bundle to find the key
key - the key into the resource bundle
Returns:
a formatted localized value from the resource bundle