Class LocaleConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.i18n.LocaleConfigurer
Configure a Locale Value using full, localized Language and Country names
- Author:
- Brent Easton
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.configure.Configurer
Configurer.ContextLevel
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static String[]
protected static String[]
protected JPanel
Fields inherited from class VASSAL.configure.Configurer
changeSupport, context, contextLevel, frozen, hint, key, LIST_ENTRY_HIGHLIGHT_COLOR, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
ConstructorDescriptionLocaleConfigurer
(String key, String name) LocaleConfigurer
(String key, String name, String val) LocaleConfigurer
(String key, String name, Locale locale) -
Method Summary
Methods inherited from class VASSAL.configure.Configurer
addFocusListener, addPropertyChangeListener, fireUpdate, getContext, getContextLevel, getHint, getKey, getName, getScreenSize, getValue, initCustomControls, isFrozen, isHighlighted, isPieceContext, removeFocusListener, removePropertyChangeListener, repack, repack, requestFocus, setContext, setContext, setContext, setContextLevel, setEnabled, setFrozen, setHighlighted, setHint, setHintKey, setLabelVisibile, setLabelVisible, setName, setValue
-
Field Details
-
ANY_COUNTRY
- See Also:
-
panel
-
languages
-
languageList
-
countries
-
countryList
-
langBox
-
countryBox
-
-
Constructor Details
-
LocaleConfigurer
-
LocaleConfigurer
-
LocaleConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
getValueLocale
-
setValue
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
setLanguage
-
setCountry
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
updateValue
protected void updateValue() -
getLanguageList
-
getCountryList
-
stringToLocale
-
localeToString
-