tp.controllers
Class SaveControl

java.lang.Object
  extended by tp.controllers.ActionControl
      extended by tp.controllers.SaveControl
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener, javax.swing.event.ChangeListener

public class SaveControl
extends ActionControl

A controller to process events on a screen, where the saving of results is executed.


Field Summary
static int COMMA
           
static int CSV
           
static java.lang.String[] csvSeparatorName
           
static java.lang.String[] outpuFileFormatsName
           
static int SEMICOLON
           
 
Fields inherited from class tp.controllers.ActionControl
event
 
Constructor Summary
SaveControl()
           
 
Method Summary
 void endBtnClick()
          After click on "Quit" button, application is halted.
 int getDefaultSeparator()
          Method used to get default separator of values in CSV files.
 void changeFileFormat()
          Method used to change actual setting of file format.
 void changeSeparator(java.lang.String s)
          Method used to change the separator of values in CSV files.
 void init(DocsRepresentDB dr)
          Initialization of a tab for saving the pre-processed documents.
 void saveBtnClick()
          Method is called, if a Save button is clicked.
 void setRestrictMaxOccur()
          Method used to change actual setting of restriction of maximum occurence of a feature.
 void setRestrictMinOccur()
          Method used to change actual setting of restriction of minimum occurence of a feature.
 boolean writeCategory()
          Method used to get information, if the category of documents should be stored.
 void writeCategoryChange()
          Method used to change information, if the category of documents should be stored.
 
Methods inherited from class tp.controllers.ActionControl
actionPerformed, invokeMethod, itemStateChanged, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outpuFileFormatsName

public static final java.lang.String[] outpuFileFormatsName

csvSeparatorName

public static final java.lang.String[] csvSeparatorName

COMMA

public static final int COMMA
See Also:
Constant Field Values

SEMICOLON

public static final int SEMICOLON
See Also:
Constant Field Values

CSV

public static final int CSV
See Also:
Constant Field Values
Constructor Detail

SaveControl

public SaveControl()
Method Detail

saveBtnClick

public void saveBtnClick()
Method is called, if a Save button is clicked. It saves all document representation into a CSV file.


endBtnClick

public void endBtnClick()
After click on "Quit" button, application is halted.


changeSeparator

public void changeSeparator(java.lang.String s)
Method used to change the separator of values in CSV files.


getDefaultSeparator

public int getDefaultSeparator()
Method used to get default separator of values in CSV files.

Returns:
default separator

init

public void init(DocsRepresentDB dr)
Initialization of a tab for saving the pre-processed documents. Some limits of data saving are computed.

Parameters:
database - of document representations

writeCategory

public boolean writeCategory()
Method used to get information, if the category of documents should be stored.

Returns:
boolen value, "1" if category should be stored

writeCategoryChange

public void writeCategoryChange()
Method used to change information, if the category of documents should be stored.


setRestrictMinOccur

public void setRestrictMinOccur()
Method used to change actual setting of restriction of minimum occurence of a feature.


setRestrictMaxOccur

public void setRestrictMaxOccur()
Method used to change actual setting of restriction of maximum occurence of a feature.


changeFileFormat

public void changeFileFormat()
Method used to change actual setting of file format.