genealogy.struct
Class SessionLocale

java.lang.Object
  |
  +--genealogy.struct.SessionLocale

public class SessionLocale
extends java.lang.Object

A SessionLocale object to keep the selected locale in the session-scope.


Field Summary
private  java.util.Locale sessionLocale
           
 
Constructor Summary
SessionLocale()
          create new locale. default locale is fi.
 
Method Summary
 java.util.Locale getLocale()
          get the locale
 void setLocale(java.lang.String language, java.lang.String country)
          set the locale
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

sessionLocale

private java.util.Locale sessionLocale
Constructor Detail

SessionLocale

public SessionLocale()
create new locale. default locale is fi.
Method Detail

setLocale

public void setLocale(java.lang.String language,
                      java.lang.String country)
set the locale
Parameters:
language - example: "fi"
country - example: "FI"

getLocale

public java.util.Locale getLocale()
get the locale
Returns:
Locale return the locale.