tp.controllers
Class MainControl

java.lang.Object
  extended by tp.controllers.MainControl

public class MainControl
extends java.lang.Object

Main controller which executes component controllers and actions (Singleton design pattern used)


Constructor Summary
protected MainControl()
           
 
Method Summary
 HelpControl getHelpControl()
          A function, which returns the reference to controller for help panel
static MainControl getInstance()
          Method used to create a Singleton
 LoaderControl getLoaderControl()
          A function, which returns the reference to controller for loader
 MenuControl getMainMenuController()
          A function, which returns the controller for application menu
 MainView getMainView()
          A function, which returns the istance of the main window.
 ResourcesModel getResourceModel()
          A function, which returns the reference to class which handles resources of application
 ResultsControl getResultsControl()
          A function, which returns the reference to controller for results
 SaveControl getSaveControl()
          A function, which returns the reference to controller for saving the results
 SettingsControl getSettingsControl()
          A function, which returns the reference to controller for preprocessing settings
 void gotoResults(DocsRepresentDB database)
          Method is used to change from pre-processing and representation setting to its results.
 void gotoSave(DocsRepresentDB database)
          Method is used to change from pre-processing resuts to save the results tab.
 void gotoSettings(DocumentsDatabase database)
          Method is used to change from data reading to pre-processing and representation setting.
 void startAppliacation()
          The method initializes the main window of the application and initializes component controllers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainControl

protected MainControl()
Method Detail

getInstance

public static MainControl getInstance()
Method used to create a Singleton

Returns:
instance of the singleton

startAppliacation

public void startAppliacation()
The method initializes the main window of the application and initializes component controllers.


gotoSettings

public void gotoSettings(DocumentsDatabase database)
Method is used to change from data reading to pre-processing and representation setting. It initializes controller for settings and gives it reference to a database of files. An object for data reading is destroyed.

Parameters:
database - reference to a database of files

gotoResults

public void gotoResults(DocsRepresentDB database)
Method is used to change from pre-processing and representation setting to its results. It initializes controller for results and gives it reference to a database of document representation. An object for pre-processing and representation setting tab is destroyed.

Parameters:
database - reference to a database of document representations

gotoSave

public void gotoSave(DocsRepresentDB database)
Method is used to change from pre-processing resuts to save the results tab. It initializes controller for saving and gives it reference to a database of document representation. An object for results tab is destroyed.

Parameters:
database - reference to a database of document representations

getMainView

public MainView getMainView()
A function, which returns the istance of the main window.

Returns:
instance of MainView

getMainMenuController

public MenuControl getMainMenuController()
A function, which returns the controller for application menu

Returns:
instance of MainMenuControl

getResourceModel

public ResourcesModel getResourceModel()
A function, which returns the reference to class which handles resources of application

Returns:
instance of ResourceModel

getHelpControl

public HelpControl getHelpControl()
A function, which returns the reference to controller for help panel

Returns:
instance HelpControl

getLoaderControl

public LoaderControl getLoaderControl()
A function, which returns the reference to controller for loader

Returns:
instance of LoaderControl

getSettingsControl

public SettingsControl getSettingsControl()
A function, which returns the reference to controller for preprocessing settings

Returns:
instance of SettingsControl

getResultsControl

public ResultsControl getResultsControl()
A function, which returns the reference to controller for results

Returns:
instance of ResultsControl

getSaveControl

public SaveControl getSaveControl()
A function, which returns the reference to controller for saving the results

Returns:
instance of SaveControl