VASSAL.configure
Class TextConfigurer

java.lang.Object
  |
  +--VASSAL.configure.Configurer
        |
        +--VASSAL.configure.TextConfigurer

public class TextConfigurer
extends Configurer

A Configurer that allows multi-line string input via a JTextArea


Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
TextConfigurer(java.lang.String key, java.lang.String name)
           
TextConfigurer(java.lang.String key, java.lang.String name, java.lang.String val)
           
 
Method Summary
static java.lang.String escapeNewlines(java.lang.String s)
           
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.String getValueString()
           
static java.lang.String restoreNewlines(java.lang.String s)
           
 void setValue(java.lang.Object o)
          Set the Object value
 void setValue(java.lang.String s)
          Set the Object value from a String
 
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, setFrozen, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextConfigurer

public TextConfigurer(java.lang.String key,
                      java.lang.String name)

TextConfigurer

public TextConfigurer(java.lang.String key,
                      java.lang.String name,
                      java.lang.String val)
Method Detail

getValueString

public java.lang.String getValueString()
Overrides:
getValueString in class Configurer
Following copied from class: VASSAL.configure.Configurer
Returns:
a String representation of the Object value

escapeNewlines

public static java.lang.String escapeNewlines(java.lang.String s)

setValue

public void setValue(java.lang.String s)
Description copied from class: Configurer
Set the Object value from a String
Overrides:
setValue in class Configurer

setValue

public void setValue(java.lang.Object o)
Description copied from class: Configurer
Set the Object value
Overrides:
setValue in class Configurer

restoreNewlines

public static java.lang.String restoreNewlines(java.lang.String s)

getControls

public java.awt.Component getControls()
Description copied from class: Configurer
GUI interface for setting the option in an editing window
Overrides:
getControls in class Configurer