net.sf.tlc.core.impl
Class DefaultI18nHelper

java.lang.Object
  extended bynet.sf.tlc.core.impl.DefaultI18nHelper
All Implemented Interfaces:
I18nHelper

public class DefaultI18nHelper
extends java.lang.Object
implements I18nHelper

Default I18nHelper implementation.

Author:
aisrael

Constructor Summary
DefaultI18nHelper(java.lang.String bundleName)
          Default constructor
 
Method Summary
 java.util.Locale getCurrentLocale()
          (non-Javadoc)
 java.lang.String getMessage(java.lang.String key)
          (non-Javadoc)
 void setCurrentLocale(java.util.Locale locale)
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultI18nHelper

public DefaultI18nHelper(java.lang.String bundleName)
Default constructor

Parameters:
bundleName - the resource bundle base name
Method Detail

setCurrentLocale

public final void setCurrentLocale(java.util.Locale locale)
(non-Javadoc)

Specified by:
setCurrentLocale in interface I18nHelper
Parameters:
locale - The Locale to use
See Also:
I18nHelper.setCurrentLocale(java.util.Locale)

getCurrentLocale

public final java.util.Locale getCurrentLocale()
(non-Javadoc)

Specified by:
getCurrentLocale in interface I18nHelper
Returns:
the current Locale
See Also:
I18nHelper.getCurrentLocale()

getMessage

public final java.lang.String getMessage(java.lang.String key)
(non-Javadoc)

Specified by:
getMessage in interface I18nHelper
Parameters:
key - The message key
Returns:
The internationalived message
See Also:
I18nHelper.getMessage(java.lang.String)


Copyright © 2005 TheLittleContainer. All Rights Reserved.