|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openfuture.util.misc.SessionLocales
SessionLocales.java Created: Tue Jan 09 08:14:36 2001
Constructor Summary | |
SessionLocales(java.lang.String names)
Creates a new SessionLocales instance. |
Method Summary | |
void |
addLocale(java.util.Locale l)
Adds a new Locale to the current list. |
static java.util.Locale |
createLocale(java.lang.String name)
Creates a new Locale from the given ISO locale name (de_DE, etc.). |
java.util.LinkedList |
getCodes()
Get the value of codes. |
java.util.LinkedList |
getDisplayNames()
Get the value of displayNames. |
java.util.LinkedList |
getLocales()
Get the value of locales. |
java.util.Locale |
selectClosest(java.util.Locale root)
Select the locale from the session locales
that is the closest one to the given locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionLocales(java.lang.String names)
SessionLocales
instance.names
- a String
valueMethod Detail |
public static java.util.Locale createLocale(java.lang.String name)
name
- a String
valueLocale
valuepublic java.util.Locale selectClosest(java.util.Locale root)
session locales
that is the closest one to the given locale. If no good match is
found, the default locale
is returned.root
- the given localesession locales
public java.util.LinkedList getCodes()
public java.util.LinkedList getDisplayNames()
public java.util.LinkedList getLocales()
public void addLocale(java.util.Locale l)
l
- a Locale
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |