|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bws42.wizard.LanguageLoader
Allows for loading of different languages for the strings of a program.
Constructor Summary | |
LanguageLoader(ResourceBundle resource)
Creates a LanguageLoader for the program. |
|
LanguageLoader(String bundleName,
Locale locale)
Creates a LanguageLoader for the program. |
|
LanguageLoader(String bundleName,
String locale)
Creates a LanguageLoader for the program. |
Method Summary | |
String |
getString(String key)
Gets the string for the given key if it exists. |
String |
getString(String key,
Object[] vars)
Gets the string for the given key if it exists and returns it with any variables replaced by the appropriate string in the Object[]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LanguageLoader(String bundleName, String locale)
bundleName
- the name of the resource bundle.locale
- language stringpublic LanguageLoader(String bundleName, Locale locale)
bundleName
- the name of the resource bundle.locale
- the desired Locale.public LanguageLoader(ResourceBundle resource)
resource
- the ResourceBundle.Method Detail |
public final String getString(String key)
key
- the key to search for.
public final String getString(String key, Object[] vars)
key
- the key to search forvars
- the strings to replace the variables with
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |