|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I18nBundle
The interface provides access to a resourcebundle that can be defined in XML or as an java-object. Example Usage:
I18nBundle i18n = (I18nBundle)serviceManager.lookup(I18nBundle.ROLE); i18n.getString("yes"); // will get the translation for yes.
Field Summary | |
---|---|
static String |
ROLE
|
Method Summary | |
---|---|
String |
format(String key,
Object obj1)
same as format(key,new Object[] {obj1}); |
String |
format(String key,
Object[] obj)
same as
(new MessageFormat(getString(key))).format(obj);
|
String |
format(String key,
Object obj1,
Object obj2)
same as format(key,new Object[] {obj1, obj2}); |
ImageIcon |
getIcon(String key)
returns the specified icon from the image-resource-file. |
String |
getLang()
|
Locale |
getLocale()
|
URL |
getResource(String key)
returns the URL of a resource, with the specified key. |
String |
getString(String key)
returns the specified string from the selected resource-file. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
String format(String key, Object obj1) throws MissingResourceException
MissingResourceException
format(String,Object[])
String format(String key, Object obj1, Object obj2) throws MissingResourceException
MissingResourceException
format(String,Object[])
String format(String key, Object[] obj) throws MissingResourceException
(new MessageFormat(getString(key))).format(obj);
MissingResourceException
MessageFormat
ImageIcon getIcon(String key) throws MissingResourceException
MissingResourceException
- if not found or can't be loaded.String getString(String key) throws MissingResourceException
MissingResourceException
- if not found or can't be loaded.URL getResource(String key) throws MissingResourceException
MissingResourceException
String getLang()
Locale getLocale()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |