|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rapla.components.xmlbundle.CompoundI18n
public class CompoundI18n
Allows the combination of two resource-bundles. First the inner bundle will be searched. If the requested resource was not found the outer bundle will be searched.
Field Summary |
---|
Fields inherited from interface org.rapla.components.xmlbundle.I18nBundle |
---|
ROLE |
Constructor Summary | |
---|---|
CompoundI18n(I18nBundle inner,
I18nBundle outer)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundI18n(I18nBundle inner, I18nBundle outer)
Method Detail |
---|
public String format(String key, Object obj1)
I18nBundle
format
in interface I18nBundle
I18nBundle.format(String,Object[])
public String format(String key, Object obj1, Object obj2)
I18nBundle
format
in interface I18nBundle
I18nBundle.format(String,Object[])
public String format(String key, Object[] obj)
I18nBundle
(new MessageFormat(getString(key))).format(obj);
format
in interface I18nBundle
MessageFormat
public ImageIcon getIcon(String key)
I18nBundle
getIcon
in interface I18nBundle
public String getString(String key)
I18nBundle
getString
in interface I18nBundle
public URL getResource(String key)
I18nBundle
getResource
in interface I18nBundle
public String getLang()
getLang
in interface I18nBundle
public Locale getLocale()
getLocale
in interface I18nBundle
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |