|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lavantech.gui.comp.LocaleSpecificResources
LocaleSpecificResources class provides language specific string and other preferences for the Date Time Picker components. If string used for "OK", "Cancel", "Hour", "Min"... needs to be changed to a language other than english, this is the class that needs to be customized. The class also sets the preferences for displaying hour in 12 hour or 24 hour format. This hour preference is used in Time Panel.
Field Summary | |
static int |
HOUR_FORMAT_12
Value of Hour format indicating 12 hour format. |
static int |
HOUR_FORMAT_24
Value of Hour format indicating 24 hour format. |
Constructor Summary | |
LocaleSpecificResources()
|
Method Summary | |
static int |
getHourFormat()
Returns the hour format preference. |
static java.lang.String |
getLabelString(java.lang.String key)
Returns the language specific string for a given key string. |
static void |
setHourFormat(int format)
Sets the hour format preference. |
static void |
setLabelString(java.lang.String key,
java.lang.String value)
Sets the language specific string for given key string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HOUR_FORMAT_12
public static final int HOUR_FORMAT_24
Constructor Detail |
public LocaleSpecificResources()
Method Detail |
public static void setLabelString(java.lang.String key, java.lang.String value)
Key String | Predefined value |
---|---|
okay | OK |
cancel | Cancel |
hour | Hour |
minute | Min |
seconds | Sec |
today | Today |
now | Now |
clear | Clear |
public static java.lang.String getLabelString(java.lang.String key)
key
- Key string for which the value will be returned.
public static void setHourFormat(int format)
public static int getHourFormat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |