|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.motorola.iden.resourcebundle.SystemResourceBundle
The SystemResourceBundle class encapsulates the access to native system for string resource retrieval.The static final int members with the prefix STRING_ defined in this class are those Java string IDs with which the associated data can be retrieved from native system.
Field Summary | |
static int |
STRING_COMM_CANCEL
id for cancel |
static int |
STRING_COMM_CENTER
id for center |
static int |
STRING_COMM_DATE
id for date |
static int |
STRING_COMM_ENTRY_METHOD
id for entry method |
static int |
STRING_COMM_IGNORE
id for Ignore |
static int |
STRING_COMM_LANGUAGES
id for common language |
static int |
STRING_COMM_LEFT
id for left |
static int |
STRING_COMM_NO
id for No |
static int |
STRING_COMM_NUMERIC
id for common numeric |
static int |
STRING_COMM_RIGHT
id for right |
static int |
STRING_COMM_YES
id for Yes |
static int |
STRING_HELP
id for help |
static int |
STRING_JUSTIFICATION
id for justification |
static int |
STRING_KOREAN_SYL
id for Korean syllable |
static int |
STRING_MENU_TITLE_MENU
id for title menu |
static int |
STRING_MULTI_TAP
id for multi-tap |
static int |
STRING_PREDICTIVE
id for predictive |
static int |
STRING_SKEY_BACK
id for soft key back |
static int |
STRING_SKEY_DONE
id for soft key done |
static int |
STRING_SKEY_EXIT
id for soft key exit |
static int |
STRING_SKEY_NEXT
id for soft key next |
static int |
STRING_SKEY_OFF
id for soft key off |
static int |
STRING_SKEY_OK
id for soft key ok |
static int |
STRING_SKEY_ON
id for soft key on |
static int |
STRING_SKEY_PAUSE
id for soft key pause |
static int |
STRING_SKEY_PLAY
id for soft key play |
static int |
STRING_SKEY_RETRY
id for soft key retry |
static int |
STRING_SKEY_SAVE
id for soft key save |
static int |
STRING_SKEY_SELECT
id for soft key select |
static int |
STRING_SKEY_START
id for soft key start |
static int |
STRING_SKEY_STOP
id for soft key stop |
static int |
STRING_SYMBOLS
id for symbols |
Constructor Summary | |
SystemResourceBundle()
initializes a SystemResourceBundle with the default locale |
|
SystemResourceBundle(Locale loc)
initializes a SystemResourceBundle using the given locale |
Method Summary | |
static Locale[] |
getAvailableLocales()
gets all the system available locales. getAvailableLanguages() will return all the languages which are supported by native system. |
Locale |
getLocale()
returns the locale of the system resource bundle intance |
String |
getString(int strID)
returns the string resource of the given ID and language package |
void |
setLocale(Locale loc)
sets the locale of the system resource bundle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STRING_SKEY_OK
public static final int STRING_SKEY_BACK
public static final int STRING_SKEY_NEXT
public static final int STRING_SKEY_EXIT
public static final int STRING_SKEY_RETRY
public static final int STRING_SKEY_SAVE
public static final int STRING_SKEY_ON
public static final int STRING_SKEY_OFF
public static final int STRING_SKEY_PLAY
public static final int STRING_SKEY_PAUSE
public static final int STRING_SKEY_START
public static final int STRING_SKEY_STOP
public static final int STRING_SKEY_SELECT
public static final int STRING_SKEY_DONE
public static final int STRING_COMM_YES
public static final int STRING_COMM_NO
public static final int STRING_COMM_ENTRY_METHOD
public static final int STRING_COMM_LANGUAGES
public static final int STRING_COMM_NUMERIC
public static final int STRING_COMM_IGNORE
public static final int STRING_COMM_CANCEL
public static final int STRING_COMM_LEFT
public static final int STRING_COMM_CENTER
public static final int STRING_COMM_RIGHT
public static final int STRING_COMM_DATE
public static final int STRING_PREDICTIVE
public static final int STRING_MULTI_TAP
public static final int STRING_SYMBOLS
public static final int STRING_KOREAN_SYL
public static final int STRING_HELP
public static final int STRING_MENU_TITLE_MENU
public static final int STRING_JUSTIFICATION
Constructor Detail |
public SystemResourceBundle()
public SystemResourceBundle(Locale loc)
loc
- the given locale
NullPointerException
- If the parameter loc is nullMethod Detail |
public Locale getLocale()
public void setLocale(Locale loc)
loc
- the locale.
NullPointerException
- If the parameter loc is nullpublic String getString(int strID)
strID
- the resource ID
MissingResourceException
- if the desired resource cannot be found.public static Locale[] getAvailableLocales()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |