|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsears.tools.SearsResourceBundle
public class SearsResourceBundle
Class SearsResourceBundle.
Summary:
This class permits to access to the string resources in the choosen locale.
Field Summary | |
---|---|
static java.lang.String[][] |
LOCALES
Languages supported by Sears, array used by the options dialog |
Constructor Summary | |
---|---|
SearsResourceBundle()
Constructor SearsResourceBundle. |
|
SearsResourceBundle(java.util.Locale locale)
Constructor SearsResourceBundle. |
Method Summary | |
---|---|
static java.lang.String[] |
getAllAvailableLanguage()
Returns an array of string which contains all the language names available on Sears. |
static javax.swing.Icon |
getIconForLocaleString(java.lang.String locale)
Gets the icon which correspond to the locale string |
static java.util.Locale |
getLocale()
Method getLocale. |
static java.lang.String |
getResource(java.lang.String key)
Method getResource. |
static java.lang.String |
getResource(java.lang.String key,
java.lang.String defaultValue)
Method getResource. |
static java.lang.String |
getStringForLocaleString(java.lang.String locale)
Converts a 'locale' string ("en_US") to a proper string to display ("English") using LOCALES class constant |
static void |
setLocale(java.util.Locale locale)
Method setLocale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[][] LOCALES
Constructor Detail |
---|
public SearsResourceBundle()
public SearsResourceBundle(java.util.Locale locale)
Method Detail |
---|
public static void setLocale(java.util.Locale locale)
locale
- The new locale to set.public static java.lang.String getResource(java.lang.String key)
key
- The key of the value to found.
public static java.lang.String getResource(java.lang.String key, java.lang.String defaultValue)
key
- The key of the value to found.defaultValue
- The default value to return, if key is not found.
public static java.util.Locale getLocale()
public static java.lang.String getStringForLocaleString(java.lang.String locale)
locale
- the string to convert
public static javax.swing.Icon getIconForLocaleString(java.lang.String locale)
locale
- the locale string ("en_US)
public static java.lang.String[] getAllAvailableLanguage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |