| java.lang.Object com.caucho.widget.LocaleString
LocaleString | public class LocaleString (Code) | | A locale String maps locales to String
|
Field Summary | |
final protected static Logger | log |
LocaleString | public LocaleString()(Code) | | |
LocaleString | public LocaleString(Locale locale)(Code) | | Construct and set the default locale.
|
LocaleString | public LocaleString(String text)(Code) | | Construct and set the text for the default locale.
|
LocaleString | public LocaleString(Locale locale, String text)(Code) | | Construct, set the default locale, and set the text for the default locale.
|
add | public void add(LocaleString localeString)(Code) | | Add the strings from another locale to this locale.
In the case of duplicate locales, the current values are overridden
by the new values
|
get | public String get(Locale locale)(Code) | | Return the most specific text available.
- the text that matches the full locale
- the text that matches the locale without variant
- the text that matches the locale without variant or country
- the text for the default locale
- any text available
|
getValue | public String getValue()(Code) | | Return the most specific text available.
- the text for the thread locale set with setThreadLocale()
- the text for the thread locale without variant
- the text for the thread locale wthout variant or country
- the text for the default locale
- any text available
|
setLocale | public void setLocale(Locale locale)(Code) | | Set the default locale for text set with addText, the default is
the platform default.
|
setThreadLocale | public static void setThreadLocale(Locale locale)(Code) | | Set the default locale to use for this thread when using
the getValue() method.
|
|
|