|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.conf.Localization
The configuration class offers some methods to read and write localization
properties as language, country and time zone
PropertyKeys| Constructor Summary | |
Localization()
|
|
| Method Summary | |
static java.util.Vector |
getAllCountries()
Gets the country names and the iso codes supported by the mobile infrastructure framework |
static java.util.Vector |
getAllCountriesIsoName()
Gets the countries supported by the mobile infrastructure framework in two letter iso code |
static java.util.Vector |
getAllCountriesLongName()
Gets the countries supported by the mobile infrastructure framework |
static java.util.Vector |
getAllCountriesSorted()
Gets the country names and the iso codes supported by the mobile infrastructure framework |
static java.util.Vector |
getAllLanguages()
Gets the languages supported by the mobile infrastructure framework |
static java.util.Vector |
getAllTimezones()
Gets the allTimezones attribute of the Localization class |
static java.lang.String |
getCountry()
Gets the current country |
static java.lang.String |
getFormatedDate()
Gets the formatedDate attribute of the Localization class |
static java.lang.String |
getFormatedDate(long l)
Gets the formatedDate attribute of the Localization class |
static java.lang.String |
getFormatedTime()
returns the current time (formated) |
static java.lang.String |
getFormatedTime(long l)
Gets the formatedTime attribute of the Localization class |
static java.lang.String |
getLanguage()
Gets the language setting of the current user |
static java.util.Locale |
getLocale()
Gets the locale attribute of the Localization class |
static java.util.TimeZone |
getTimeZone()
Gets the timeZone attribute of the Localization class |
static void |
setCountry(java.lang.String isoCountry)
sets the current country |
static void |
setLanguage(java.lang.String languageIso)
Sets the language attribute of the current user |
static void |
setLocale(java.util.Locale locale)
Sets the locale attribute of the Localization class this changes also the java default locale. |
static void |
setTimeZone(java.util.TimeZone timeZone)
Sets the timeZone attribute of the Localization class so the java formatters for date and time will use this timezone. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Localization()
| Method Detail |
public static java.util.Locale getLocale()
public static void setLocale(java.util.Locale locale)
locale - The new locale valuepublic static java.util.TimeZone getTimeZone()
public static void setTimeZone(java.util.TimeZone timeZone)
timeZone - The new timeZone valuepublic static java.util.Vector getAllTimezones()
public static java.util.Vector getAllLanguages()
public static java.lang.String getLanguage()
public static void setLanguage(java.lang.String languageIso)
languageIso - The new language value in iso code 639public static java.util.Vector getAllCountriesLongName()
public static java.util.Vector getAllCountriesIsoName()
public static java.util.Vector getAllCountries()
public static java.util.Vector getAllCountriesSorted()
countrycolumn[0] = Locale.getCountry(); countrycolumn[1] = Locale.getDisplayCountry()public static java.lang.String getCountry()
public static void setCountry(java.lang.String isoCountry)
isoCountry - The new country value in iso 3166public static java.lang.String getFormatedDate()
public static java.lang.String getFormatedDate(long l)
l - date in milliseconds
public static java.lang.String getFormatedTime()
public static java.lang.String getFormatedTime(long l)
l - time in milliseconds
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||