com.jstatcom.io
Class FileSupportSettings
- java.lang.Object
-
- com.jstatcom.io.FileSupportSettings
-
- All Implemented Interfaces:
- SettingsElement
public final class FileSupportSettings extends java.lang.Object implements SettingsElement
Holds information for theFileSupportclass about the location of selected files that should be stored between application runs.
-
-
Field Summary
Fields Modifier and Type Field and Description static XmlFormat<FileSupportSettings>FileSupportSettings_XMLXML format field for (de)serialization.
-
Constructor Summary
Constructors Constructor and Description FileSupportSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JSCSArraygetSelectedFiles()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 directoryvoidsetElement()Implementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime.voidsetSelectedFiles(JSCSArray selectedFiles)Sets theJSCSArraywith the names of selected files and directories.
-
-
-
Field Detail
-
FileSupportSettings_XML
public static final XmlFormat<FileSupportSettings> FileSupportSettings_XML
XML format field for (de)serialization.
-
-
Method Detail
-
setElement
public void setElement()
Description copied from interface:SettingsElementImplementations of this method should use the information stored in thisSettingsElementto set the state of components at runtime. For example, one implementation of this interface, theProjectTreeNode, adds itself to theProjectTreewhen this method is called. Before that, it has been restored from its serialization in an XML file.- Specified by:
setElementin interfaceSettingsElement
-
getSelectedFiles
public 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
- Returns:
- 4x1
JSCSArray
-
setSelectedFiles
public void setSelectedFiles(JSCSArray selectedFiles)
Sets theJSCSArraywith the names of selected files and directories.- Parameters:
selectedFiles- array with names- Throws:
java.lang.IllegalArgumentException-if (selectedFiles == null)
-
-
DMelt 3.0 © DataMelt by jWork.ORG