Class PrefsMediator
java.lang.Object
org.apache.uima.tools.docanalyzer.PrefsMediator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
returns the new edited stylemap fileget the path to the TAE that is where the StyleMap file should be writtenvoid
void
void
setDocButtons
(JButton run, JButton inter, JButton view) void
setEncoding
(String encoding) void
setFileSelectors
(FileSelector input, FileSelector output, FileSelector xml) void
setInputDir
(String inputDir) void
setInputFileFormat
(String inputFileFormat) void
setLanguage
(String language) void
setLenient
(Boolean lenient) void
setOutputDir
(String outputDir) void
setOutputDirForInteractiveMode
(String outputDir, String outputDirToSave) Special case of setOutpuDir needed for interactive mode.void
setTAEfile
(String edir) void
setViewType
(String viewType) void
-
Constructor Details
-
PrefsMediator
public PrefsMediator()
-
-
Method Details
-
restorePreferences
public void restorePreferences() -
savePreferences
public void savePreferences() -
getInputDir
- Returns:
- Returns the inputDir.
-
setInputDir
- Parameters:
inputDir
- The inputDir to set.
-
getOutputDir
- Returns:
- Returns the outputDir.
-
setOutputDir
- Parameters:
outputDir
- The outputDir to set.
-
setOutputDirForInteractiveMode
Special case of setOutpuDir needed for interactive mode. In interactive mode, we append "/interactive_out" to the end, but we don't want to save this in the preferences. To support that, this method takes one parameter which is the output dir to be set and used by the application, and a second parameter to set the directory that is saved to the preferences.- Parameters:
outputDir
- the output dir to setoutputDirToSave
- the output dir to save to the preferences
-
getTAEfile
- Returns:
- Returns the tAEdir.
-
getTAEPath
get the path to the TAE that is where the StyleMap file should be written -
getTAEFileNameRoot
-
setTAEfile
- Parameters:
edir
- set the TAE directory
-
getEncoding
- Returns:
- Returns the encoding.
-
setEncoding
- Parameters:
encoding
- The encoding to set.
-
getInputFileFormat
- Returns:
- Returns the input file format.
-
setInputFileFormat
- Parameters:
inputFileFormat
- The input file format to set.
-
getLanguage
- Returns:
- Returns the language.
-
setLanguage
- Parameters:
language
- The language to set.
-
getViewType
- Returns:
- Returns the view type.
-
setViewType
- Parameters:
viewType
- The view type to set.
-
getXmlTag
- Returns:
- Returns the xmlTag.
-
setXmlTag
- Parameters:
xmlTag
- The xmlTag to set.
-
getLenient
- Returns:
- Returns lenient.
-
setLenient
- Parameters:
lenient
- The lenient to set.
-
getStylemapFile
returns the new edited stylemap file -
setDocButtons
-
setFileSelectors
-
fieldFocusLost
public void fieldFocusLost()
-