Hilbert II - Version 0.03.08

org.qedeq.gui.se.pane
Class QedeqGuiConfig

java.lang.Object
  extended byorg.qedeq.kernel.config.QedeqConfig
      extended byorg.qedeq.gui.se.pane.QedeqGuiConfig

public final class QedeqGuiConfig
extends QedeqConfig

This class gives a type save access to the GUI properties of the application.

Version:
$Revision: 1.2 $

Method Summary
 File getFileBrowserStartDirecty()
          Get start directory for file browser.
static QedeqGuiConfig getInstance()
          Get instance of config access.
static void init(File configFile, File basisDirectory)
          Load config file from start directory.
 boolean isAutomaticLogScroll()
          Should the log window scroll automatically to the last line?
 boolean isAutoStartHtmlBrowser()
          Get autostart html mode.
 boolean isDirectResponse()
          Get direct response mode.
 void setAutomaticLogScroll(boolean value)
          Should the log window scroll automatically to the last line?
 void setAutoStartHtmlBrowser(boolean mode)
          Set auto start HTML browser.
 void setDirectResponse(boolean mode)
          Set direct response mode.
 void setFileBrowserStartDirecty(File directory)
          Set start directory for file browser.
 
Methods inherited from class org.qedeq.kernel.config.QedeqConfig
createAbsolutePath, getBasisDirectory, getBufferDirectory, getGenerationDirectory, getKeyValue, getKeyValue, getLocalModulesDirectory, getLogFile, getModuleHistory, getPreviouslyCheckedModules, isAutoReloadLastSessionChecked, isOldHtml, saveModuleHistory, setAutoReloadLastSessionChecked, setBufferDirectory, setGenerationDirectory, setKeyValue, setLoadedModules, setLocalModulesDirectory, setOldHtml, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static QedeqGuiConfig getInstance()
Get instance of config access. Method init(java.io.File, java.io.File) must have been called before.

Returns:
singleton, which is responsible the config access
Throws:
IllegalStateException - if #setup wasn't called before this method call

init

public static void init(File configFile,
                        File basisDirectory)
                 throws IOException
Load config file from start directory. This method must be called at the beginning. Look at {link IoUtility#getStartDirectory(String)} with parameter qedeq

Parameters:
basisDirectory - Start directory of application. Basis for all relative paths.
Throws:
IOException - Config file not found or readable.

isAutomaticLogScroll

public final boolean isAutomaticLogScroll()
Should the log window scroll automatically to the last line?

Returns:
Automatic scroll for log window?

setAutomaticLogScroll

public final void setAutomaticLogScroll(boolean value)
Should the log window scroll automatically to the last line?

Returns:
Automatic scroll for log window?

isAutoStartHtmlBrowser

public final boolean isAutoStartHtmlBrowser()
Get autostart html mode.

Returns:
list of modules.

setAutoStartHtmlBrowser

public final void setAutoStartHtmlBrowser(boolean mode)
Set auto start HTML browser.

Parameters:
mode - Auto start?

isDirectResponse

public final boolean isDirectResponse()
Get direct response mode.

Returns:
Direct response mode.

setDirectResponse

public final void setDirectResponse(boolean mode)
Set direct response mode.

Parameters:
mode - enable direct response?

getFileBrowserStartDirecty

public final File getFileBrowserStartDirecty()
Get start directory for file browser.

Returns:
Directory.

setFileBrowserStartDirecty

public final void setFileBrowserStartDirecty(File directory)
Set start directory for file browser.

Parameters:
directory - Start directory.

Hilbert II - Version 0.03.08

©left GNU General Public Licence
All Rights Reserved.