com.jstatcom.io
Class FileSupportSettings

java.lang.Object
  extended by com.jstatcom.io.FileSupportSettings
All Implemented Interfaces:
SettingsElement

public final class FileSupportSettings
extends java.lang.Object
implements SettingsElement

Holds information for the FileSupport class about the location of selected files that should be stored between application runs.

Author:
Markus Kraetzig

Field Summary
static javolution.xml.XmlFormat<FileSupportSettings> FileSupportSettings_XML
          XML format field for (de)serialization.
 
Constructor Summary
FileSupportSettings()
           
 
Method Summary
 JSCSArray getSelectedFiles()
          Gets the string array with the names of selected files and directories in the followins order: selected text output directory selected data directory selected project filename (without directory) selected project directory
 void setElement()
          Implementations of this method should use the information stored in this SettingsElement to set the state of components at runtime.
 void setSelectedFiles(JSCSArray selectedFiles)
          Sets the JSCSArray with the names of selected files and directories.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FileSupportSettings_XML

public static final javolution.xml.XmlFormat<FileSupportSettings> FileSupportSettings_XML
XML format field for (de)serialization.

Constructor Detail

FileSupportSettings

public FileSupportSettings()
Method Detail

setElement

public void setElement()
Description copied from interface: SettingsElement
Implementations of this method should use the information stored in this SettingsElement to set the state of components at runtime. For example, one implementation of this interface, the ProjectTreeNode, adds itself to the ProjectTree when this method is called. Before that, it has been restored from its serialization in an XML file.

Specified by:
setElement in interface SettingsElement

getSelectedFiles

public JSCSArray getSelectedFiles()
Gets the string array with the names of selected files and directories in the followins order:
  1. selected text output directory
  2. selected data directory
  3. selected project filename (without directory)
  4. selected project directory

Returns:
4x1 JSCSArray

setSelectedFiles

public void setSelectedFiles(JSCSArray selectedFiles)
Sets the JSCSArray with the names of selected files and directories.

Parameters:
selectedFiles - array with names
Throws:
java.lang.IllegalArgumentException - if (selectedFiles == null)