| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalizedContext
A helper object which allows to retrieve titles and descriptions for resources
implementing the Localized interface. The object performs
language range matching as described in RFC2616 to determine the best fitting
language to use for display purposes.
The language ranges to be considered are determined by how the context object
is retrieved. For details, see LocalizedContextHome
and its sub-interfaces.
Method Summary | |
---|---|
java.util.Locale | getDefaultLocale()
Returns the default locale as defined by portal |
java.lang.String | getDescription(Localized aLocalized)
Returns a fitting description of the given localized instance based on the information the context was created with. |
java.util.Locale | getPreferredLocale(java.lang.Iterable<java.util.Locale> anIterable)
Returns a preferred locale based on the information the context was created with. |
java.util.Locale | getPreferredLocale(java.util.Iterator<java.util.Locale> anIterator)
Returns a preferred locale based on the information the context was created with. |
java.util.Locale | getPreferredLocale(ListModel<java.util.Locale> aLocaleList)
Returns a preferred locale based on the information the context was created with. |
java.util.List<java.util.Locale> | getPreferredLocales(java.lang.Iterable<java.util.Locale> anIterable)
Returns a read-only list of preferred locales (in descending order) based on the information the context was created with. |
java.util.List<java.util.Locale> | getPreferredLocales(java.util.Iterator<java.util.Locale> anIterator)
Returns a read-only list of preferred locales (in descending order) based on the information the context was created with. |
java.util.List<java.util.Locale> | getPreferredLocales(ListModel<java.util.Locale> aLocaleList)
Returns a read-only list of preferred locales (in descending order) based on the information the context was created with. |
java.util.Locale | getPreferredSupportedLocale()
Returns a preferred locale based on the information the context was created with. |
java.util.List<java.util.Locale> | getPreferredSupportedLocales()
Returns a read-only list of preferred locales (in descending order) based on the information the context was created with. |
java.util.ResourceBundle | getResourceBundle(java.lang.String baseName)
Gets a resource bundle using the specified base name based on the information the context was created with. |
java.util.ResourceBundle | getResourceBundle(java.lang.String baseName,
java.lang.ClassLoader loader)
Gets a resource bundle using the specified base name based on the information the context was created with. |
IterableListModel<java.util.Locale> | getSupportedLocales()
Provides easy access ot the list of supported locales |
java.lang.String | getTitle(Localized aLocalized)
Returns a fitting title of the given localized instance based on the information the context was created with. |
Method Detail |
---|
java.util.Locale getDefaultLocale()
null
java.lang.String getDescription(Localized aLocalized)
null
null
, but may be an empty stringjava.util.Locale getPreferredLocale(java.lang.Iterable<java.util.Locale> anIterable)
null
.
The order of locales in the iterator is not relevant.
null
.
In case of ambiguous matches, the locale that came first in the input iterator will be used.java.util.Locale getPreferredLocale(java.util.Iterator<java.util.Locale> anIterator)
null
.
null
.
In case of ambiguous matches, the locale that came first in the input iterator will be used.java.util.Locale getPreferredLocale(ListModel<java.util.Locale> aLocaleList)
null
null
.
In case of ambiguous matches, the locale that came first in the input iterator will be used.java.util.List<java.util.Locale> getPreferredLocales(java.lang.Iterable<java.util.Locale> anIterable)
null
.
The order of locales in the iterator is not relevant.
null
, but may be empty.
In case of ambiguous matches, the locale order of the input list is kept.java.util.List<java.util.Locale> getPreferredLocales(java.util.Iterator<java.util.Locale> anIterator)
null
.
The order of locales in the iterator is not relevant.
null
, but may be empty.
In case of ambiguous matches, the locale order of the input list is kept.java.util.List<java.util.Locale> getPreferredLocales(ListModel<java.util.Locale> aLocaleList)
null
null
, but may be empty.
In case of ambiguous matches, the locale order of the input list is kept.java.util.Locale getPreferredSupportedLocale()
null
.
In case of ambiguous matches, the locale that came first in the input iterator will be used.java.util.List<java.util.Locale> getPreferredSupportedLocales()
null
, but may be empty.
In case of ambiguous matches, the locale order of the supported locales list is kept.java.util.ResourceBundle getResourceBundle(java.lang.String baseName)
java.util.ResourceBundle getResourceBundle(java.lang.String baseName, java.lang.ClassLoader loader)
IterableListModel<java.util.Locale> getSupportedLocales()
java.lang.String getTitle(Localized aLocalized)
null
null
, but may be an empty string
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |