Class PrefsMediator
java.lang.Object
org.apache.uima.tools.docanalyzer.PrefsMediator
The Class PrefsMediator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidField focus lost.Gets the encoding.Gets the input dir.Gets the input file format.Gets the language.Gets the lenient.Gets the output dir.returns the new edited stylemap file.Gets the TA efile.Gets the TAE file name root.get the path to the TAE that is where the StyleMap file should be written.Gets the view type.Gets the xml tag.voidRestore preferences.voidSave preferences.voidsetDocButtons(JButton run, JButton inter, JButton view) Sets the doc buttons.voidsetEncoding(String encoding) Sets the encoding.voidsetFileSelectors(FileSelector input, FileSelector output, FileSelector xml) Sets the file selectors.voidsetInputDir(String inputDir) Sets the input dir.voidsetInputFileFormat(String inputFileFormat) Sets the input file format.voidsetLanguage(String language) Sets the language.voidsetLenient(Boolean lenient) Sets the lenient.voidsetOutputDir(String outputDir) Sets the output dir.voidsetOutputDirForInteractiveMode(String outputDir, String outputDirToSave) Special case of setOutpuDir needed for interactive mode.voidsetTAEfile(String edir) Sets the TA efile.voidsetViewType(String viewType) Sets the view type.voidSets the xml tag.
-
Constructor Details
-
PrefsMediator
public PrefsMediator()Instantiates a new prefs mediator.
-
-
Method Details
-
restorePreferences
public void restorePreferences()Restore preferences. -
savePreferences
public void savePreferences()Save preferences. -
getInputDir
-
setInputDir
Sets the input dir.- Parameters:
inputDir- The inputDir to set.
-
getOutputDir
-
setOutputDir
Sets the output dir.- 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
-
getTAEPath
get the path to the TAE that is where the StyleMap file should be written.- Returns:
- the TAE path
-
getTAEFileNameRoot
-
setTAEfile
-
getEncoding
-
setEncoding
Sets the encoding.- Parameters:
encoding- The encoding to set.
-
getInputFileFormat
Gets the input file format.- Returns:
- Returns the input file format.
-
setInputFileFormat
Sets the input file format.- Parameters:
inputFileFormat- The input file format to set.
-
getLanguage
-
setLanguage
Sets the language.- Parameters:
language- The language to set.
-
getViewType
-
setViewType
Sets the view type.- Parameters:
viewType- The view type to set.
-
getXmlTag
-
setXmlTag
-
getLenient
-
setLenient
-
getStylemapFile
-
setDocButtons
-
setFileSelectors
Sets the file selectors.- Parameters:
input- the inputoutput- the outputxml- the xml
-
fieldFocusLost
public void fieldFocusLost()Field focus lost.
-