Class LocaleConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.i18n.LocaleConfigurer

public class LocaleConfigurer extends Configurer
Configure a Locale Value using full, localized Language and Country names
Author:
Brent Easton
  • Field Details

  • Constructor Details

  • Method Details

    • getValueString

      public String getValueString()
      Specified by:
      getValueString in class Configurer
      Returns:
      a String representation of the Object value
    • getValueLocale

      public Locale getValueLocale()
    • setValue

      public void setValue(Locale l)
    • setValue

      public void setValue(String s)
      Description copied from class: Configurer
      Set the Object value from a String
      Specified by:
      setValue in class Configurer
    • setLanguage

      protected void setLanguage(String l)
    • setCountry

      protected void setCountry(String c)
    • getControls

      public Component getControls()
      Description copied from class: Configurer
      GUI interface for setting the option in an editing window
      Specified by:
      getControls in class Configurer
    • updateValue

      protected void updateValue()
    • getLanguageList

      protected String[] getLanguageList()
    • getCountryList

      protected String[] getCountryList()
    • stringToLocale

      public static Locale stringToLocale(String s)
    • localeToString

      public static String localeToString(Locale l)