elge.engine
Class EngineConfiguration

java.lang.Object
  |
  +--elge.engine.EngineConfiguration

public class EngineConfiguration
extends Object

This class is responsible for the configuration of engine.

Author:
Pavol Žibrita

Field Summary
protected  boolean autoSave
          Auto save config
protected  boolean autoSearch
          Auto search
protected  Locale language
          the current application language
protected  int maxRecent
          the maximum of recent projects
protected  String name
          Engine name
protected  String ppath
          Path for projects
protected  Vector recent
          recent projects
protected  boolean showError
          Show error dialog
protected  Hashtable wl
          Windows locations..
 
Constructor Summary
EngineConfiguration()
          Creates new EngineConfiguration
 
Method Summary
 boolean getAutoSave()
          Auto save option of configuration
 boolean getAutoSearch()
          Auto search of classes in pools.
 Locale getLanguage()
          gets the language
 String getLanguageString()
          gets the language
 int getMaxRecent()
          get the max recent project number
 String getName()
          gets the name
 String getProjectPath()
          gets the project path
 Vector getRecentProjects()
          get the recent project paths vector
 boolean getShowErrorDialog()
          Gets the show error dialog option
 Hashtable getWindowsLocations()
          gets the window location
 void setAutoSave(boolean as)
          Sets the auto save option
 void setAutoSearch(boolean as)
          Sets the autosearch
 void setLanguage(Locale lang)
          sets the language
 void setLanguageString(String lang)
          sets the language
 void setName(String name)
          sets the name
 void setProjectPath(String ppath)
          sets the project path
 void setRecentProjects(Vector paths)
          sets recent projects.
 void setShowErrorDialog(boolean as)
          Sets the show error dialog option
 void setWindowsLocations(Hashtable wl)
          sets the windows location hash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recent

protected Vector recent
recent projects


maxRecent

protected int maxRecent
the maximum of recent projects


name

protected String name
Engine name


ppath

protected String ppath
Path for projects


wl

protected Hashtable wl
Windows locations..


autoSearch

protected boolean autoSearch
Auto search


autoSave

protected boolean autoSave
Auto save config


showError

protected boolean showError
Show error dialog


language

protected Locale language
the current application language

Constructor Detail

EngineConfiguration

public EngineConfiguration()
Creates new EngineConfiguration

Method Detail

getAutoSearch

public boolean getAutoSearch()
Auto search of classes in pools.

Returns:
return the auto search option
See Also:
setAutoSearch(boolean)

setAutoSearch

public void setAutoSearch(boolean as)
Sets the autosearch

Parameters:
as - value
See Also:
getAutoSearch()

getAutoSave

public boolean getAutoSave()
Auto save option of configuration

Returns:
returns the auto save option

setAutoSave

public void setAutoSave(boolean as)
Sets the auto save option

Parameters:
as - value

getShowErrorDialog

public boolean getShowErrorDialog()
Gets the show error dialog option

Returns:
show error dialog option

setShowErrorDialog

public void setShowErrorDialog(boolean as)
Sets the show error dialog option

Parameters:
as - value to set to

getName

public String getName()
gets the name

Returns:
the name

setName

public void setName(String name)
sets the name

Parameters:
name - value to set to name

getLanguage

public Locale getLanguage()
gets the language

Returns:
the name

setLanguage

public void setLanguage(Locale lang)
sets the language

Parameters:
lang - the locale to set as language

getLanguageString

public String getLanguageString()
gets the language

Returns:
the name

setLanguageString

public void setLanguageString(String lang)
sets the language

Parameters:
lang - the locale string to set as language

getProjectPath

public String getProjectPath()
gets the project path

Returns:
the project path

setProjectPath

public void setProjectPath(String ppath)
sets the project path

Parameters:
ppath - value for project path

getWindowsLocations

public Hashtable getWindowsLocations()
gets the window location

Returns:
the window location

setWindowsLocations

public void setWindowsLocations(Hashtable wl)
sets the windows location hash

Parameters:
wl - the windows location hash

getMaxRecent

public int getMaxRecent()
get the max recent project number

Returns:
int value

setRecentProjects

public void setRecentProjects(Vector paths)
sets recent projects. Vector of paths to projects

Parameters:
paths - the paths of projects

getRecentProjects

public Vector getRecentProjects()
get the recent project paths vector

Returns:
the paths of projects