|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceBundleProvider
Allows to load a resource bundle when the set of supported localed for the bundle is known.
| Method Summary | |
|---|---|
java.util.ResourceBundle |
getBundle(java.util.Locale locale)
Returns a resource bundle in the given locale. |
IterableListModel<java.util.Locale> |
getLocales()
Returns a list model containing the locales that are supported by this object. |
Localized |
getLocalized(java.lang.String aKey)
Returns a localized object that represents the key into the bundle. |
Localized |
getLocalized(java.lang.String aTitleKey,
java.lang.String aDescriptionKey)
Returns a localized object that represents the key into the bundle. |
boolean |
isEmpty()
Checks if there exist any resources in the provider |
| Methods inherited from interface com.ibm.portal.Localized |
|---|
getDescription, getTitle |
| Method Detail |
|---|
java.util.ResourceBundle getBundle(java.util.Locale locale)
Returns a resource bundle in the given locale. If the resource bundle
could not be found the method returns null. No fallback will
be applied. Fallbacks can be applied by using the
Localized.getLocales() method to apply a fallback.
Fetching a ResourceBundle for a Locale is an efficient
operation.
locale - requested locale
nullIterableListModel<java.util.Locale> getLocales()
Localized
getLocales in interface LocalizedListModel if no locales are supported.Localized getLocalized(java.lang.String aKey)
aKey - the key, not null
null
Localized getLocalized(java.lang.String aTitleKey,
java.lang.String aDescriptionKey)
aTitleKey - the key for the title, not nullaDescriptionKey - the key for the description, not null
nullboolean isEmpty()
true if the provider is empty, else
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||