|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public LocalizedContext
LocalizedContext to get the preferred locale, the default locale, as well as titles and descriptions of localized resources within this localized context.
Method Summary | |
---|---|
String |
getPreferredLocale()
Returns the preferred locale of this LocalizedContext. |
String |
getDefaultLocale()
Returns the default locale of this LocalizedContext. |
String |
getLocale(Localized localized)
Returns the locale of the localized resource, which matches best the locale set with the browser. |
String |
getDisplayLocale(String locale)
Returns the display locale set with the browser matching the specified locale. |
String |
getTitle(Localized localized)
Returns the title of the localized resource in the locale, which matches best the locale set with the browser. |
String |
getDescription(Localized localized)
Returns the description of the localized resource in the locale, which matches best the locale set with the browser. |
Method Detail |
---|
String getPreferredLocale()
String getDefaultLocale()
String getLocale(Localized localized)
localized
-
resource implementing the Localized interface; must not be null
null
if no locale is available.String getDisplayLocale(String locale)
locale
-
; mandatory, must not be null
null
if no display locale is available.String getTitle(Localized localized)
localized
-
resource implementing the Localized interface; must not be null
null
if no locale is available.String getDescription(Localized localized)
localized
-
resource implementing the Localized interface; must not be null
null
if no locale is available.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |