org.apache.uima.tools.docanalyzer
Class PrefsMediator

java.lang.Object
  extended by org.apache.uima.tools.docanalyzer.PrefsMediator

public class PrefsMediator
extends java.lang.Object


Constructor Summary
PrefsMediator()
           
 
Method Summary
 void fieldFocusLost()
           
 java.lang.String getEncoding()
           
 java.lang.String getInputDir()
           
 java.lang.String getLanguage()
           
 java.lang.String getOutputDir()
           
 java.io.File getStylemapFile()
          returns the new edited stylemap file
 java.lang.String getTAEfile()
           
 java.lang.String getTAEFileNameRoot()
           
 java.lang.String getTAEPath()
          get the path to the TAE that is where the StyleMap file should be written
 java.lang.String getViewType()
           
 java.lang.String getXmlTag()
           
 void restorePreferences()
           
 void savePreferences()
           
 void setDocButtons(javax.swing.JButton run, javax.swing.JButton inter, javax.swing.JButton view)
           
 void setEncoding(java.lang.String encoding)
           
 void setFileSelectors(FileSelector input, FileSelector output, FileSelector xml)
           
 void setInputDir(java.lang.String inputDir)
           
 void setLanguage(java.lang.String language)
           
 void setOutputDir(java.lang.String outputDir)
           
 void setOutputDirForInteractiveMode(java.lang.String outputDir, java.lang.String outputDirToSave)
          Special case of setOutpuDir needed for interactive mode.
 void setTAEfile(java.lang.String edir)
           
 void setViewType(java.lang.String viewType)
           
 void setXmlTag(java.lang.String xmlTag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefsMediator

public PrefsMediator()
Method Detail

restorePreferences

public void restorePreferences()

savePreferences

public void savePreferences()

getInputDir

public java.lang.String getInputDir()
Returns:
Returns the inputDir.

setInputDir

public void setInputDir(java.lang.String inputDir)
Parameters:
inputDir - The inputDir to set.

getOutputDir

public java.lang.String getOutputDir()
Returns:
Returns the outputDir.

setOutputDir

public void setOutputDir(java.lang.String outputDir)
Parameters:
outputDir - The outputDir to set.

setOutputDirForInteractiveMode

public void setOutputDirForInteractiveMode(java.lang.String outputDir,
                                           java.lang.String outputDirToSave)
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 set
outputDirToSave - the output dir to save to the preferences

getTAEfile

public java.lang.String getTAEfile()
Returns:
Returns the tAEdir.

getTAEPath

public java.lang.String getTAEPath()
get the path to the TAE that is where the StyleMap file should be written


getTAEFileNameRoot

public java.lang.String getTAEFileNameRoot()

setTAEfile

public void setTAEfile(java.lang.String edir)
Parameters:
TAEdir - set the TAE directory

getEncoding

public java.lang.String getEncoding()
Returns:
Returns the encoding.

setEncoding

public void setEncoding(java.lang.String encoding)
Parameters:
encoding - The encoding to set.

getLanguage

public java.lang.String getLanguage()
Returns:
Returns the language.

setLanguage

public void setLanguage(java.lang.String language)
Parameters:
language - The language to set.

getViewType

public java.lang.String getViewType()
Returns:
Returns the view type.

setViewType

public void setViewType(java.lang.String viewType)
Parameters:
viewType - The view type to set.

getXmlTag

public java.lang.String getXmlTag()
Returns:
Returns the xmlTag.

setXmlTag

public void setXmlTag(java.lang.String xmlTag)
Parameters:
xmlTag - The xmlTag to set.

getStylemapFile

public java.io.File getStylemapFile()
returns the new edited stylemap file


setDocButtons

public void setDocButtons(javax.swing.JButton run,
                          javax.swing.JButton inter,
                          javax.swing.JButton view)

setFileSelectors

public void setFileSelectors(FileSelector input,
                             FileSelector output,
                             FileSelector xml)

fieldFocusLost

public void fieldFocusLost()


Copyright © 2013. All Rights Reserved.