cz.zcu.fav.kiv.editor.controller.options
Class OptionController

java.lang.Object
  extended by cz.zcu.fav.kiv.editor.controller.options.OptionController

public class OptionController
extends java.lang.Object

The OptionController class is used for loading and saving editor options.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Constructor Summary
OptionController()
           
 
Method Summary
static void readOptions()
          Fills application properties property firstly by default option values and then by the option values loaded from the editor configuration file.
static void setDefaultEditorOptions()
          Rewrites application properties property by default option values specifying editor options.
static void setDefaultStylesheetOptions()
          Rewrites application properties property by default option values specifying stylesheet options.
static void storeOptionItems()
          Saves values in the system properties property to the editor configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionController

public OptionController()
Method Detail

readOptions

public static void readOptions()
Fills application properties property firstly by default option values and then by the option values loaded from the editor configuration file. The option values loaded from the configuration file rewrites the corresponding default option values. Then maps values from application properties property to the corresponding variables defined in OptionItems.


setDefaultStylesheetOptions

public static void setDefaultStylesheetOptions()
Rewrites application properties property by default option values specifying stylesheet options. Then maps values from system properties property (only those specifying stylesheet options) to the corresponding variables defined in OptionItems.


setDefaultEditorOptions

public static void setDefaultEditorOptions()
Rewrites application properties property by default option values specifying editor options. Then maps values from system properties property (only those specifying editor options) to the corresponding variables defined in OptionItems.


storeOptionItems

public static void storeOptionItems()
Saves values in the system properties property to the editor configuration file.