Class StringConfigurer

java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.StringConfigurer
Direct Known Subclasses:
BeanShellExpressionConfigurer, DoubleConfigurer, FormattedStringConfigurer, IntConfigurer, LongConfigurer, PasswordConfigurer

public class StringConfigurer
extends Configurer
A Configurer for String values
  • Field Details

    • p

      protected JPanel p
    • nameField

      protected JTextField nameField
    • length

      protected int length
    • DEFAULT_LENGHTH

      protected static int DEFAULT_LENGHTH
  • Constructor Details

    • StringConfigurer

      public StringConfigurer​(String key, String name)
    • StringConfigurer

      public StringConfigurer​(String key, String name, String val)
    • StringConfigurer

      public StringConfigurer​(String key, String name, int length)
  • Method Details

    • getValueString

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

      public void setValue​(String s)
      Description copied from class: Configurer
      Set the Object value from a String
      Specified by:
      setValue in class Configurer
    • 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
    • buildTextField

      protected JTextField buildTextField()