org.pdfsam.guiclient.configuration
Class Configuration

java.lang.Object
  extended by org.pdfsam.guiclient.configuration.Configuration

public class Configuration
extends java.lang.Object

Configuration Singleton

Author:
Andrea Vacondio

Field Summary
static int DEFAULT_POOL_SIZE
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getConfigurationInformations()
           
 org.pdfsam.console.business.ConsoleServicesFacade getConsoleServicesFacade()
           
 java.lang.String getDefaultEnvironment()
           
 java.lang.String getDefaultWorkingDirectory()
           
 java.util.ResourceBundle getI18nResourceBundle()
           
static Configuration getInstance()
           
 int getLoggingLevel()
           
 int getLookAndFeel()
           
 java.lang.String getPluginAbsolutePath()
           
 int getScreenResolution()
           
 java.lang.String getSelectedLanguage()
           
 int getTheme()
           
 int getThumbCreatorPoolSize()
           
 java.lang.String getThumbnailsCreatorIdentifier()
           
 int getThumbnailSize()
           
 boolean isAskOverwriteConfirmation()
           
 boolean isCheckForUpdates()
           
 boolean isHighQualityThumbnails()
           
 boolean isPlaySounds()
           
 void save()
          save the current configuration
 void setAskOverwriteConfirmation(boolean askOverwriteConfirmation)
          set the ask overwrite confirmation flag
 void setCheckForUpdates(boolean checkForUpdateds)
          Set the check for updates
 void setDefaultEnvironment(java.lang.String environmentPath)
          Set the default environment path
 void setDefaultWorkingDirectory(java.lang.String defaultDirectory)
          Set the default working directory
 void setLoggingLevel(int level)
          Set the logging level
 void setLookAndFeel(int lookAndFeel)
          Set the look and feel
 void setPlaySounds(boolean playSounds)
           
 void setSelectedLanguage(java.lang.String language)
          Set the selected language
 void setTheme(int theme)
          Set the theme
 void setThumbnailsCreatorIdentifier(java.lang.String thumbnailsCreatorIdentifier)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_POOL_SIZE

public static final int DEFAULT_POOL_SIZE
See Also:
Constant Field Values
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getInstance

public static Configuration getInstance()

getI18nResourceBundle

public java.util.ResourceBundle getI18nResourceBundle()
Returns:
the language ResourceBundle

getDefaultEnvironment

public java.lang.String getDefaultEnvironment()
Returns:
the default environment

setDefaultEnvironment

public void setDefaultEnvironment(java.lang.String environmentPath)
Set the default environment path

Parameters:
environmentPath -

getConsoleServicesFacade

public org.pdfsam.console.business.ConsoleServicesFacade getConsoleServicesFacade()
Returns:
the ConsoleServicesFacade

getLoggingLevel

public int getLoggingLevel()
Returns:
the loggingLevel

isCheckForUpdates

public boolean isCheckForUpdates()
Returns:
the checkForUpdates

setCheckForUpdates

public void setCheckForUpdates(boolean checkForUpdateds)
Set the check for updates

Parameters:
checkForUpdateds -

getDefaultWorkingDirectory

public java.lang.String getDefaultWorkingDirectory()
Returns:
the defaultWorkingDir

setDefaultWorkingDirectory

public void setDefaultWorkingDirectory(java.lang.String defaultDirectory)
Set the default working directory

Parameters:
defaultDirectory -

isPlaySounds

public boolean isPlaySounds()
Returns:
the playSounds

setPlaySounds

public void setPlaySounds(boolean playSounds)
Parameters:
playSounds - the playSounds to set

getScreenResolution

public int getScreenResolution()
Returns:
the screenResolution

getThumbCreatorPoolSize

public int getThumbCreatorPoolSize()
Returns:
the thumbCreatorPoolSize

getThumbnailsCreatorIdentifier

public java.lang.String getThumbnailsCreatorIdentifier()
Returns:
the thumbnailsCreatorIdentifier

setThumbnailsCreatorIdentifier

public void setThumbnailsCreatorIdentifier(java.lang.String thumbnailsCreatorIdentifier)
Parameters:
thumbnailsCreatorIdentifier - the thumbnailsCreatorIdentifier to set

getSelectedLanguage

public java.lang.String getSelectedLanguage()
Returns:
the selected language String representation

setSelectedLanguage

public void setSelectedLanguage(java.lang.String language)
Set the selected language

Parameters:
language -

getConfigurationInformations

public java.lang.String getConfigurationInformations()
Returns:
informations to be displayed

getPluginAbsolutePath

public java.lang.String getPluginAbsolutePath()
Returns:
the plugin absolute path

getLookAndFeel

public int getLookAndFeel()
Returns:
the look and feel

setLookAndFeel

public void setLookAndFeel(int lookAndFeel)
Set the look and feel

Parameters:
lookAndFeel -

getTheme

public int getTheme()
Returns:
the theme

setTheme

public void setTheme(int theme)
Set the theme

Parameters:
theme -

setLoggingLevel

public void setLoggingLevel(int level)
Set the logging level

Parameters:
level -

isAskOverwriteConfirmation

public boolean isAskOverwriteConfirmation()
Returns:
the ask overwrite confirmation flag

setAskOverwriteConfirmation

public void setAskOverwriteConfirmation(boolean askOverwriteConfirmation)
set the ask overwrite confirmation flag

Parameters:
askOverwriteConfirmation -

isHighQualityThumbnails

public boolean isHighQualityThumbnails()
Returns:
true if high quality thumbnails

getThumbnailSize

public int getThumbnailSize()
Returns:
See Also:
ConfigurationService.getThumbnailSize()

save

public void save()
          throws java.io.IOException
save the current configuration

Throws:
java.io.IOException