com.jfw.util
Class JFWLocale

java.lang.Object
  extended by com.jfw.util.JFWLocale

public final class JFWLocale
extends java.lang.Object

Manage the default application locale.


Method Summary
 java.lang.String getCountry()
          Return attribute country.
static JFWLocale getInstance()
          Return attribute instance.
 java.lang.String getLanguage()
          Return attribute language.
 java.util.Locale getLocale()
          Return attribute locale.
 void setLocale(java.util.Locale locale)
          Set attribute locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static JFWLocale getInstance()
Return attribute instance.

Returns:
attribute instance.

getLocale

public java.util.Locale getLocale()
Return attribute locale.

Returns:
attribute locale.

setLocale

public void setLocale(java.util.Locale locale)
Set attribute locale. Also set the attributes language and country with the relative values.

Parameters:
locale - the locale to set.

getLanguage

public java.lang.String getLanguage()
Return attribute language.

Returns:
attribute language.

getCountry

public java.lang.String getCountry()
Return attribute country.

Returns:
attribute country.