Class StringArrayConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringArrayConfigurer
Direct Known Subclasses:
FormattedStringArrayConfigurer

public class StringArrayConfigurer
extends Configurer
A Configurer that returns an array of Strings
  • Field Details

  • Constructor Details

    • StringArrayConfigurer

      public StringArrayConfigurer​(String key, String name, Object val)
    • StringArrayConfigurer

      public StringArrayConfigurer​(String key, String name)
  • Method Details

    • getModel

      public DefaultListModel<String> getModel()
    • addValue

      public void addValue​(String s)
    • removeValue

      public void removeValue​(String s)
    • 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
    • getTextComponent

      protected Component getTextComponent()
    • getTextValue

      protected String getTextValue()
    • setTextValue

      protected void setTextValue​(String s)
    • addTextActionListener

      protected void addTextActionListener​(ActionListener a)
    • getStringArray

      public String[] getStringArray()
    • getValueString

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

      public static String arrayToString​(String[] s)
    • setValue

      public void setValue​(Object o)
      Description copied from class: Configurer
      Set the Object value
      Overrides:
      setValue in class Configurer
    • setValue

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

      public static String[] stringToArray​(String s)
    • updateModel

      protected void updateModel()
    • main

      public static void main​(String[] args)