VASSAL.configure
Class FileConfigurer

java.lang.Object
  |
  +--VASSAL.configure.Configurer
        |
        +--VASSAL.configure.FileConfigurer
Direct Known Subclasses:
DirectoryConfigurer, ImageConfigurer

public class FileConfigurer
extends Configurer

A Configurer for java.io.File values


Field Summary
protected  ArchiveWriter archive
           
protected  javax.swing.JPanel p
           
protected  javax.swing.JTextField tf
           
 
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
 
Constructor Summary
FileConfigurer(java.lang.String key, java.lang.String name)
           
FileConfigurer(java.lang.String key, java.lang.String name, ArchiveWriter archive)
          If a non-null ArchiveWriter is used in the constructor, then invoking setValue(java.lang.Object) on this FileConfigurer will automatically add the file to the archive
 
Method Summary
 void chooseNewValue()
           
protected  java.io.File fileValue()
           
 java.awt.Component getControls()
          GUI interface for setting the option in an editing window
 java.lang.String getValueString()
           
static void main(java.lang.String[] args)
           
 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
 

Field Detail

archive

protected ArchiveWriter archive

p

protected javax.swing.JPanel p

tf

protected javax.swing.JTextField tf
Constructor Detail

FileConfigurer

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

FileConfigurer

public FileConfigurer(java.lang.String key,
                      java.lang.String name,
                      ArchiveWriter archive)
If a non-null ArchiveWriter is used in the constructor, then invoking setValue(java.lang.Object) on this FileConfigurer will automatically add the file to the archive
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

setValue

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

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

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

chooseNewValue

public void chooseNewValue()

fileValue

protected java.io.File fileValue()

main

public static void main(java.lang.String[] args)