|
SWIXML 1.2 (#140) |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.swixml.Localizer
The Localizer
class provides consumers with
a simple localization tools: getString(key)
.
Locale and ResourceBundle need to be set to use it.
Constructor Summary | |
Localizer()
|
Method Summary | |
ClassLoader |
getClassLoader()
|
String |
getString(String key)
Returns the localized String baseed on the given key. |
boolean |
isUsable()
Informs about the usablility of this Localizer. |
void |
setLocale(Locale locale)
Sets this Localizer's locale. |
void |
setResourceBundle(String bundleName)
Sets this Localizer's ResourceBundle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Localizer()
Method Detail |
public String getString(String key)
key
- String
String
- localized String , or key , if no lacalization is found.public void setLocale(Locale locale)
locale
- Locale
public void setResourceBundle(String bundleName) throws MissingResourceException
bundleName
- String
ResourceBundle file / class name
MissingResourceException
public boolean isUsable()
boolean
- true if Localizer is setup with Locale and ResourceBundle.public ClassLoader getClassLoader()
ClassLoader
returns the classloader attribute, which has probably been set by the SwingEngine
|
SWIXML 1.2 (#140) |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |