misc.rr.diabetes.be.calculator.locales.utils
Class LocaleHandler

java.lang.Object
  extended by misc.rr.diabetes.be.calculator.locales.utils.LocaleHandler
All Implemented Interfaces:
DiabetesInterface

public class LocaleHandler
extends Object
implements DiabetesInterface

Version:
0.0.1
Author:
Reinhold Rumberger

Field Summary
 
Fields inherited from interface misc.rr.diabetes.DiabetesInterface
stable, UNSTABLE_WARNING
 
Method Summary
static LocaleHandler getInstance()
           
 int getLanguageCount()
           
 String getLanguageName(int i)
           
 String getMessage(String msg)
           
 void setCurrentLanguage(Locale newLocale)
           
 void setCurrentLanguage(String newLocale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LocaleHandler getInstance()
Returns:
the singleton LocaleHandler

getMessage

public String getMessage(String msg)

setCurrentLanguage

public void setCurrentLanguage(Locale newLocale)
Parameters:
newLocale -

setCurrentLanguage

public void setCurrentLanguage(String newLocale)
Parameters:
newLocale -

getLanguageCount

public int getLanguageCount()

getLanguageName

public String getLanguageName(int i)