com.kerrybuckley.cctrayicon
Class MessageUtils

java.lang.Object
  extended bycom.kerrybuckley.cctrayicon.MessageUtils

public class MessageUtils
extends java.lang.Object

Utility class to look up and return message strings from the messages file for the current locale.

Author:
Kerry Buckley

Method Summary
static java.lang.String getString(java.lang.String key)
          Return the message corresponding to the supplied key.
static java.lang.String getString(java.lang.String key, java.lang.Object[] arguments)
          Return the message corresponding to the supplied key, substituting the supplied parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(java.lang.String key)
Return the message corresponding to the supplied key.

Parameters:
key - the message key
Returns:
the simple string message from the properties file for the curent locale

getString

public static java.lang.String getString(java.lang.String key,
                                         java.lang.Object[] arguments)
Return the message corresponding to the supplied key, substituting the supplied parameters.

Parameters:
key - the message key
arguments - an array of objects to be substituted into {0}, {1} etc in the message
Returns:
the resulting message