com.motorola.iden.resourcebundle
Class SystemResourceBundle

java.lang.Object
  extended bycom.motorola.iden.resourcebundle.SystemResourceBundle

public class SystemResourceBundle
extends Object

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.


MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2004 Motorola, Inc. All Rights Reserved.


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

STRING_SKEY_OK

public static final int STRING_SKEY_OK
id for soft key ok

See Also:
Constant Field Values

STRING_SKEY_BACK

public static final int STRING_SKEY_BACK
id for soft key back

See Also:
Constant Field Values

STRING_SKEY_NEXT

public static final int STRING_SKEY_NEXT
id for soft key next

See Also:
Constant Field Values

STRING_SKEY_EXIT

public static final int STRING_SKEY_EXIT
id for soft key exit

See Also:
Constant Field Values

STRING_SKEY_RETRY

public static final int STRING_SKEY_RETRY
id for soft key retry

See Also:
Constant Field Values

STRING_SKEY_SAVE

public static final int STRING_SKEY_SAVE
id for soft key save

See Also:
Constant Field Values

STRING_SKEY_ON

public static final int STRING_SKEY_ON
id for soft key on

See Also:
Constant Field Values

STRING_SKEY_OFF

public static final int STRING_SKEY_OFF
id for soft key off

See Also:
Constant Field Values

STRING_SKEY_PLAY

public static final int STRING_SKEY_PLAY
id for soft key play

See Also:
Constant Field Values

STRING_SKEY_PAUSE

public static final int STRING_SKEY_PAUSE
id for soft key pause

See Also:
Constant Field Values

STRING_SKEY_START

public static final int STRING_SKEY_START
id for soft key start

See Also:
Constant Field Values

STRING_SKEY_STOP

public static final int STRING_SKEY_STOP
id for soft key stop

See Also:
Constant Field Values

STRING_SKEY_SELECT

public static final int STRING_SKEY_SELECT
id for soft key select

See Also:
Constant Field Values

STRING_SKEY_DONE

public static final int STRING_SKEY_DONE
id for soft key done

See Also:
Constant Field Values

STRING_COMM_YES

public static final int STRING_COMM_YES
id for Yes

See Also:
Constant Field Values

STRING_COMM_NO

public static final int STRING_COMM_NO
id for No

See Also:
Constant Field Values

STRING_COMM_ENTRY_METHOD

public static final int STRING_COMM_ENTRY_METHOD
id for entry method

See Also:
Constant Field Values

STRING_COMM_LANGUAGES

public static final int STRING_COMM_LANGUAGES
id for common language

See Also:
Constant Field Values

STRING_COMM_NUMERIC

public static final int STRING_COMM_NUMERIC
id for common numeric

See Also:
Constant Field Values

STRING_COMM_IGNORE

public static final int STRING_COMM_IGNORE
id for Ignore

See Also:
Constant Field Values

STRING_COMM_CANCEL

public static final int STRING_COMM_CANCEL
id for cancel

See Also:
Constant Field Values

STRING_COMM_LEFT

public static final int STRING_COMM_LEFT
id for left

See Also:
Constant Field Values

STRING_COMM_CENTER

public static final int STRING_COMM_CENTER
id for center

See Also:
Constant Field Values

STRING_COMM_RIGHT

public static final int STRING_COMM_RIGHT
id for right

See Also:
Constant Field Values

STRING_COMM_DATE

public static final int STRING_COMM_DATE
id for date

See Also:
Constant Field Values

STRING_PREDICTIVE

public static final int STRING_PREDICTIVE
id for predictive

See Also:
Constant Field Values

STRING_MULTI_TAP

public static final int STRING_MULTI_TAP
id for multi-tap

See Also:
Constant Field Values

STRING_SYMBOLS

public static final int STRING_SYMBOLS
id for symbols

See Also:
Constant Field Values

STRING_KOREAN_SYL

public static final int STRING_KOREAN_SYL
id for Korean syllable

See Also:
Constant Field Values

STRING_HELP

public static final int STRING_HELP
id for help

See Also:
Constant Field Values

STRING_MENU_TITLE_MENU

public static final int STRING_MENU_TITLE_MENU
id for title menu

See Also:
Constant Field Values

STRING_JUSTIFICATION

public static final int STRING_JUSTIFICATION
id for justification

See Also:
Constant Field Values
Constructor Detail

SystemResourceBundle

public SystemResourceBundle()
initializes a SystemResourceBundle with the default locale


SystemResourceBundle

public SystemResourceBundle(Locale loc)
initializes a SystemResourceBundle using the given locale

Parameters:
loc - the given locale
Throws:
NullPointerException - If the parameter loc is null
Method Detail

getLocale

public Locale getLocale()
returns the locale of the system resource bundle intance


setLocale

public void setLocale(Locale loc)
sets the locale of the system resource bundle

Parameters:
loc - the locale.
Throws:
NullPointerException - If the parameter loc is null

getString

public String getString(int strID)
returns the string resource of the given ID and language package

Parameters:
strID - the resource ID
Returns:
the desired string resource.
Throws:
MissingResourceException - if the desired resource cannot be found.

getAvailableLocales

public static Locale[] getAvailableLocales()
gets all the system available locales. getAvailableLanguages() will return all the languages which are supported by native system. If native system support "enUS", we can also say that it support "en". But here we consider "enUS" and "en" as one locale.

Returns:
all the system available locales