|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.core.i18n.ThreadResources
public class ThreadResources
Provides access to a resource bundle associated with this thread. The application calls setThreadLocale
to set the locale for the thread, then calls the getMessage methods.
ResourceHandle| Constructor Summary | |
|---|---|
ThreadResources()
|
|
| Method Summary | |
|---|---|
static java.util.Locale |
getLocale()
Deprecated. since 2.1 |
static java.lang.String |
getMessage(java.lang.String key)
Get a message given the message key. |
static java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] arguments)
Get a message that has placeholders. |
static com.ibm.icu.util.ULocale |
getULocale()
Get the locale of current user-thread. |
static void |
setLocale(java.util.Locale locale)
Deprecated. since 2.1 |
static void |
setLocale(com.ibm.icu.util.ULocale locale)
Set the locale of current user-thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadResources()
| Method Detail |
|---|
public static void setLocale(com.ibm.icu.util.ULocale locale)
locale - Locale of the current thread.public static void setLocale(java.util.Locale locale)
public static com.ibm.icu.util.ULocale getULocale()
public static java.util.Locale getLocale()
public static java.lang.String getMessage(java.lang.String key)
key - the message key
ResourceBundle#getString( String ),
ResourceHandle.getMessage( String )
public static java.lang.String getMessage(java.lang.String key,
java.lang.Object[] arguments)
key - the message keyarguments - the set of arguments to be plugged into the message
ResourceBundle#getString( String ),
MessageFormat.format( String, Object[] ),
ResourceHandle.getMessage( String, Object[] )
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||