net.sourceforge.helpgui.util
Class Language

java.lang.Object
  extended by net.sourceforge.helpgui.util.Language

public class Language
extends java.lang.Object

Class that help to get text from differents file format

Author:
Alexandre THOMAS

Field Summary
(package private)  java.util.Locale currentLocale
          Local variable
(package private)  java.util.ResourceBundle i18n
          For the resource file
private static Language language
          Static variable
 
Constructor Summary
private Language()
          Constructor of the language
 
Method Summary
static Language getInstance()
          Get the instance of the language
 java.lang.String getText(java.lang.String key)
           
 void setLocale(java.util.Locale locale)
          Set the local value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

private static Language language
Static variable


currentLocale

java.util.Locale currentLocale
Local variable


i18n

java.util.ResourceBundle i18n
For the resource file

Constructor Detail

Language

private Language()
Constructor of the language

Method Detail

getInstance

public static Language getInstance()
Get the instance of the language


setLocale

public void setLocale(java.util.Locale locale)
Set the local value


getText

public java.lang.String getText(java.lang.String key)