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

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

public class OptionItems
extends java.lang.Object

The OptionItems class contains variables defining all options used in the application.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
static java.lang.Boolean ADD_FO_NAMESPACE
          The flag specifying if the FO namespace definition is added to every new stylesheet file
static java.lang.String APPLICATION_VERSION
          The version of the application
static java.lang.String BATCH_FILE
          The batch file path
static java.lang.String ENCODING
          The actual editor encoding
static java.lang.Boolean ERASE_CONSOLE
          The flag specifying if the editor console is erased before every action
static java.lang.String FO_NAMESPACE
          The stylesheet FO namespace
static java.lang.Boolean GENERATE_COMMENTS
          The flag specifying if the comments in stylesheets are generated
static java.lang.String IMPORT_FILE
          The list specifying XSL stylesheet files imported to a new stylesheet file
static java.lang.String KEY_ADD_FO_NAMESPACE
          The property key of the flag specifying if the FO namespace definition is added to every new stylesheet file
static java.lang.String KEY_BATCH_FILE
          The property key of batch file path
static java.lang.String KEY_ENCODING
          The property key of the actual editor encoding
static java.lang.String KEY_ERASE_CONSOLE
          The property key of the flag specifying if the editor console is erased before every action
static java.lang.String KEY_GENERATE_COMMENTS
          The property key of the flag specifying if the comments in stylesheets are generated
static java.lang.String KEY_IMPORT_FILE
          The property key of the list specifying XSL stylesheet files imported to a new stylesheet file
static java.lang.String KEY_LANGUAGE
          The property key of the language used in the editor
static java.lang.String KEY_NEWLINE
          The property key of the actual stylesheet end of line
static java.lang.String KEY_REARRANGE_SAVE
          The property key of the flag specifying if the rearrange stylesheet saving is used
static java.lang.String KEY_SAVE_BEFORE_RUN
          The property key of flag specifying if the opened stylesheet is automatically saved before launching batch file
static java.lang.String KEY_STYLESHEET_VERSION
          The property key of stylesheet version
static java.lang.String KEY_USE_PARAM_SELECT
          The property key of the flag specifying if attribute select is used in the stylesheet parameter element
static java.lang.String KEY_XML_DEFINITION_PATH
          The property key of the path where files with XML descriptions of FO parameters are stored
static java.util.Locale LANGUAGE
          The language used in the editor
static NewlineEnum NEWLINE
          The actual stylesheet end of line
static java.lang.String OPTION_PATH
          The configuration file where options of the application are stored
static java.lang.Boolean REARRANGE_SAVE
          The flag specifying if the rearrange stylesheet saving is used
static java.lang.Boolean SAVE_BEFORE_RUN
          The flag specifying if the opened stylesheet is automatically saved before launching batch file
static java.lang.String STYLESHEET_VERSION
          The stylesheet version
static java.lang.Boolean USE_PARAM_SELECT
          The flag specifying if attribute select is used in the stylesheet parameter element
static java.lang.String XML_DEFINITION_PATH
          The path where files with XML descriptions of FO parameters are stored
static java.lang.String XSL_NAMESPACE
          The stylesheet XSL namespace
 
Constructor Summary
OptionItems()
           
 
Method Summary
static void changeLanguage(java.util.Locale language)
          Changes language used in the editor by the input language locale, if the language locale is supported by the editor.
static java.util.Properties getDefaultBatchSettings(java.util.Properties defaultSettings)
          Fills application properties property by default other values.
static java.util.Properties getDefaultEditorSettings(java.util.Properties defaultSettings)
          Fills application properties property by default option values.
static java.util.Properties getDefaultStylesheetSettings(java.util.Properties defaultSettings)
          Fills application properties property by default option values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_PATH

public static final java.lang.String OPTION_PATH
The configuration file where options of the application are stored

See Also:
Constant Field Values

APPLICATION_VERSION

public static final java.lang.String APPLICATION_VERSION
The version of the application

See Also:
Constant Field Values

XSL_NAMESPACE

public static final java.lang.String XSL_NAMESPACE
The stylesheet XSL namespace

See Also:
Constant Field Values

FO_NAMESPACE

public static final java.lang.String FO_NAMESPACE
The stylesheet FO namespace

See Also:
Constant Field Values

KEY_LANGUAGE

public static final java.lang.String KEY_LANGUAGE
The property key of the language used in the editor

See Also:
Constant Field Values

LANGUAGE

public static java.util.Locale LANGUAGE
The language used in the editor


KEY_XML_DEFINITION_PATH

public static final java.lang.String KEY_XML_DEFINITION_PATH
The property key of the path where files with XML descriptions of FO parameters are stored

See Also:
Constant Field Values

XML_DEFINITION_PATH

public static java.lang.String XML_DEFINITION_PATH
The path where files with XML descriptions of FO parameters are stored


KEY_ERASE_CONSOLE

public static final java.lang.String KEY_ERASE_CONSOLE
The property key of the flag specifying if the editor console is erased before every action

See Also:
Constant Field Values

ERASE_CONSOLE

public static java.lang.Boolean ERASE_CONSOLE
The flag specifying if the editor console is erased before every action


KEY_ADD_FO_NAMESPACE

public static final java.lang.String KEY_ADD_FO_NAMESPACE
The property key of the flag specifying if the FO namespace definition is added to every new stylesheet file

See Also:
Constant Field Values

ADD_FO_NAMESPACE

public static java.lang.Boolean ADD_FO_NAMESPACE
The flag specifying if the FO namespace definition is added to every new stylesheet file


KEY_REARRANGE_SAVE

public static final java.lang.String KEY_REARRANGE_SAVE
The property key of the flag specifying if the rearrange stylesheet saving is used

See Also:
Constant Field Values

REARRANGE_SAVE

public static java.lang.Boolean REARRANGE_SAVE
The flag specifying if the rearrange stylesheet saving is used


KEY_GENERATE_COMMENTS

public static final java.lang.String KEY_GENERATE_COMMENTS
The property key of the flag specifying if the comments in stylesheets are generated

See Also:
Constant Field Values

GENERATE_COMMENTS

public static java.lang.Boolean GENERATE_COMMENTS
The flag specifying if the comments in stylesheets are generated


KEY_USE_PARAM_SELECT

public static final java.lang.String KEY_USE_PARAM_SELECT
The property key of the flag specifying if attribute select is used in the stylesheet parameter element

See Also:
Constant Field Values

USE_PARAM_SELECT

public static java.lang.Boolean USE_PARAM_SELECT
The flag specifying if attribute select is used in the stylesheet parameter element


KEY_ENCODING

public static final java.lang.String KEY_ENCODING
The property key of the actual editor encoding

See Also:
Constant Field Values

ENCODING

public static java.lang.String ENCODING
The actual editor encoding


KEY_NEWLINE

public static final java.lang.String KEY_NEWLINE
The property key of the actual stylesheet end of line

See Also:
Constant Field Values

NEWLINE

public static NewlineEnum NEWLINE
The actual stylesheet end of line


KEY_IMPORT_FILE

public static final java.lang.String KEY_IMPORT_FILE
The property key of the list specifying XSL stylesheet files imported to a new stylesheet file

See Also:
Constant Field Values

IMPORT_FILE

public static java.lang.String IMPORT_FILE
The list specifying XSL stylesheet files imported to a new stylesheet file


KEY_STYLESHEET_VERSION

public static final java.lang.String KEY_STYLESHEET_VERSION
The property key of stylesheet version

See Also:
Constant Field Values

STYLESHEET_VERSION

public static java.lang.String STYLESHEET_VERSION
The stylesheet version


KEY_BATCH_FILE

public static final java.lang.String KEY_BATCH_FILE
The property key of batch file path

See Also:
Constant Field Values

BATCH_FILE

public static java.lang.String BATCH_FILE
The batch file path


KEY_SAVE_BEFORE_RUN

public static final java.lang.String KEY_SAVE_BEFORE_RUN
The property key of flag specifying if the opened stylesheet is automatically saved before launching batch file

See Also:
Constant Field Values

SAVE_BEFORE_RUN

public static java.lang.Boolean SAVE_BEFORE_RUN
The flag specifying if the opened stylesheet is automatically saved before launching batch file

Constructor Detail

OptionItems

public OptionItems()
Method Detail

changeLanguage

public static void changeLanguage(java.util.Locale language)
Changes language used in the editor by the input language locale, if the language locale is supported by the editor. Updates all text expression in the application according to the new language.

Parameters:
language - the locale of the language that will be set as current editor language.

getDefaultEditorSettings

public static java.util.Properties getDefaultEditorSettings(java.util.Properties defaultSettings)
Fills application properties property by default option values. Maps only variables specifying editor options (LANGUAGE, XML_DEFINITION_PATH, ERASE_CONSOLE).

Parameters:
defaultSettings - the properties storing options of the application.
Returns:
the properties storing options of the application containing default editor options.

getDefaultStylesheetSettings

public static java.util.Properties getDefaultStylesheetSettings(java.util.Properties defaultSettings)
Fills application properties property by default option values. Maps only variables specifying stylesheet options (ADD_FO_NAMESPACE, REARRANGE_SAVE, GENERATE_COMMENTS, USE_PARAM_SELECT, ENCODING, NEWLINE, STYLESHEET_VERSION, IMPORT_FILE).

Parameters:
defaultSettings - the properties storing options of the application.
Returns:
the properties storing options of the application containing default stylesheet options.

getDefaultBatchSettings

public static java.util.Properties getDefaultBatchSettings(java.util.Properties defaultSettings)
Fills application properties property by default other values. Maps only variables specifying batch options (BATCH_FILE, SAVE_BEFORE_RUN).

Parameters:
defaultSettings - the properties storing options of the application.
Returns:
the properties storing options of the application containing default batch options.