Package se.datadosen.jalbum
Class Config
java.lang.Object
se.datadosen.jalbum.Config
- All Implemented Interfaces:
Serializable
Singelton to store global configuration parameters
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static enum
Simple enum based wrapper around Java's standard Logging level classstatic enum
static enum
static enum
static enum
static enum
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String name, PropertyChangeListener listener) void
bind
(String propertyName, PropertyChangeListener pcl) Convenience method to add property change listener AND make an initial call, thereby binding the listener to the currently current valuestatic Config
static File
getConfigFile
(String newName, String oldName) int
int
int
getLook()
Deprecated.Deprecated.Use getLookint
int
For smooth transitional experience Commented out as this setting is never forgottenint
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
True if lggging level is fine or moreboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Deprecated.Use isVideoSupported insteadboolean
Tell if video support has been activatedboolean
boolean
void
void
removePropertyChangeListener
(String name, PropertyChangeListener listener) void
setAfterPublishAction
(Config.AfterPublishAction afterPublishAction) void
setBackgroundMode
(boolean backgroundMode) void
setBackgroundSignInOnStart
(boolean backgroundSignInOnStart) void
setBgNotifications
(Config.NotificationLevel bgNotifications) void
setCacheThumbnails
(boolean cacheThumbnails) void
setCheckForUpdates
(boolean checkForUpdates) void
setCheckSpelling
(boolean checkSpelling) void
setCleanOutputFiles
(boolean clean) void
setCompressAudioClips
(boolean compressAudioClips) void
setDatePattern
(String pattern) void
setDividerLocation
(int dividerLocation) void
setEncryptManifest
(boolean encryptManifest) void
setFileAddMethod
(Config.FileAddMethod fileAddMethod) void
setFolderPropertiesWidth
(int width) void
setFontSize
(int fontSize) void
setHttpProxyHost
(String httpProxyHost) void
setHttpProxyPort
(String httpProxyPort) void
setIllegalCharacters
(String illegalCharacters) void
setIncludeLifeboatFile
(boolean includeLifeboatFile) void
setIndexAlbumObjects
(boolean indexAlbumObjects) void
setIndexMetadata
(boolean indexMetadata) void
setLabelType
(Config.LabelType labelType) void
setLanguage
(String language) void
setLocalServerURL
(String localServerURL) void
setLoggingLevel
(Config.LoggingLevel loggingLevel) void
Deprecated.void
setLookAndFeel
(String lookAndFeel) Deprecated.Use setLookvoid
setLookAndFeelName
(String lookAndFeelName) void
setManifestPassword
(String manifestPassword) void
setMaxSimultaneousTransfers
(int maxSimultaneousTransfers) void
setMyAlbumsLocation
(String myAlbumsLocation) void
setOutputDirectoryLocation
(Config.OutputDirectoryLocation outputDirectoryLocation) void
setPreviewMode
(Config.PreviewMode previewMode) void
setPreviewServerPort
(String previewServerPort) void
setProgramDirectory
(File progDir) void
setProgramDirectory
(String progDir) void
setProjectOrdering
(Config.ProjectOrdering projectOrdering) void
setRecentProjects
(int recentProjects) Set max number of recent projects to listvoid
setRememberCopiedFiles
(boolean rememberCopiedFiles) Avoid copying files already copied from memory cards by storing a small database on each cardvoid
setRememberLastSelectedItem
(boolean rememberLastSelectedItem) void
setServerBasedPreview
(boolean serverBasedPreview) void
setShowOpenHTMLEditorButton
(boolean showOpenHTMLEditorButton) void
setShowTipOfTheDay
(boolean showTipOfTheDay) void
setShowWarnings
(boolean showWarnings) void
setSkinsDirectory
(File skinsDir) void
setSkinsDirectory
(String skinsDir) void
setSupportedVideoFormats
(Set<String> supportedVideoFormats) void
setSynchronizeOutputDirectory
(boolean synchronizeOutputDirectory) void
setThumbnailQuality
(Config.ThumbnailQuality thumbnailQuality) void
setUnifyColorModel
(boolean unifyColorModel) void
setUseHardLinks
(boolean useHardLinks) void
setUseLayoutHints
(boolean useLayoutHints) void
setUseNativeFileDialogs
(boolean useNativeFileDialogs) void
setUseWatchdog
(boolean useWatchdog) void
setVideoSupported
(boolean videoSupported) void
setWebDirectory
(String webDirectory) Where to create album folders for new album projectsvoid
setWebHostListUrl
(String webHostListUrl) void
setWindowState
(int windowState) void
setWriteXmp
(boolean writeXmp) Write XMP metadata to files?void
setZipstreaming
(boolean zipstreaming)
-
Field Details
-
DARCULA_LAF_NAME
- See Also:
-
FLAT_DARCULA_LAF_NAME
- See Also:
-
progDir
-
skinsDir
-
chainedSkinsDir
-
chainedSystemDir
-
pluginsDir
-
language
-
-
Method Details
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
getConfig
-
getConfigFile
-
setProgramDirectory
-
setProgramDirectory
-
setSkinsDirectory
-
setSkinsDirectory
-
getLanguage
-
getInterpretedLanguage
-
setLanguage
-
getLook
Deprecated. -
setLook
Deprecated. -
getLookAndFeelName
-
setLookAndFeelName
-
setLookAndFeel
Deprecated.Use setLook- Parameters:
lookAndFeel
-
-
getLookAndFeel
Deprecated.Use getLook- Returns:
-
getWebHostListUrl
-
setWebHostListUrl
-
isCleanOutputFiles
public boolean isCleanOutputFiles() -
setCleanOutputFiles
public void setCleanOutputFiles(boolean clean) -
isSynchronizeOutputDirectory
public boolean isSynchronizeOutputDirectory() -
setSynchronizeOutputDirectory
public void setSynchronizeOutputDirectory(boolean synchronizeOutputDirectory) -
isUseHardLinks
public boolean isUseHardLinks() -
setUseHardLinks
public void setUseHardLinks(boolean useHardLinks) -
isCacheThumbnails
public boolean isCacheThumbnails() -
setCacheThumbnails
public void setCacheThumbnails(boolean cacheThumbnails) -
getThumbnailQuality
-
setThumbnailQuality
-
getAfterPublishAction
-
setAfterPublishAction
-
isEncryptManifest
public boolean isEncryptManifest() -
setEncryptManifest
public void setEncryptManifest(boolean encryptManifest) -
getManifestPassword
-
setManifestPassword
-
isZipstreaming
public boolean isZipstreaming() -
setZipstreaming
public void setZipstreaming(boolean zipstreaming) -
getLoggingLevel
-
setLoggingLevel
-
isDebugMode
public boolean isDebugMode()True if lggging level is fine or more- Returns:
-
getMyAlbumsLocation
-
setMyAlbumsLocation
-
getWebDirectory
- Returns:
- Where to create album folders for new album projects
- Since:
- 15.2
-
setWebDirectory
Where to create album folders for new album projects- Parameters:
webDirectory
-- Since:
- 15.2
-
getOutputDirectoryLocation
-
setOutputDirectoryLocation
-
isShowTipOfTheDay
public boolean isShowTipOfTheDay() -
setShowTipOfTheDay
public void setShowTipOfTheDay(boolean showTipOfTheDay) -
getLabelType
-
setLabelType
-
getFileAddMethod
-
setFileAddMethod
-
getIllegalCharacters
-
setIllegalCharacters
-
isRememberCopiedFiles
public boolean isRememberCopiedFiles() -
setRememberCopiedFiles
public void setRememberCopiedFiles(boolean rememberCopiedFiles) Avoid copying files already copied from memory cards by storing a small database on each card -
isWriteXmp
public boolean isWriteXmp() -
setWriteXmp
public void setWriteXmp(boolean writeXmp) Write XMP metadata to files?- Since:
- 10.0
-
getHttpProxyHost
-
setHttpProxyHost
-
getHttpProxyPort
-
setHttpProxyPort
-
getMaxSimultaneousTransfers
public int getMaxSimultaneousTransfers() -
setMaxSimultaneousTransfers
public void setMaxSimultaneousTransfers(int maxSimultaneousTransfers) -
isUseNativeFileDialogs
public boolean isUseNativeFileDialogs() -
setUseNativeFileDialogs
public void setUseNativeFileDialogs(boolean useNativeFileDialogs) -
isUnifyColorModel
public boolean isUnifyColorModel() -
setUnifyColorModel
public void setUnifyColorModel(boolean unifyColorModel) -
isVideoSupport
Deprecated.Use isVideoSupported instead- Returns:
-
isVideoSupported
public boolean isVideoSupported()Tell if video support has been activated- Returns:
- Since:
- v11
-
setVideoSupported
public void setVideoSupported(boolean videoSupported) -
getSupportedVideoFormats
-
setSupportedVideoFormats
-
getDividerLocation
public int getDividerLocation() -
setDividerLocation
public void setDividerLocation(int dividerLocation) -
getFolderPropertiesWidth
public int getFolderPropertiesWidth() -
setFolderPropertiesWidth
public void setFolderPropertiesWidth(int width) -
getProjectOrdering
-
setProjectOrdering
-
getRecentProjects
public int getRecentProjects()For smooth transitional experience Commented out as this setting is never forgotten -
setRecentProjects
public void setRecentProjects(int recentProjects) Set max number of recent projects to list- Parameters:
recentProjects
-
-
getFontSize
public int getFontSize() -
setFontSize
public void setFontSize(int fontSize) -
isUseWatchdog
public boolean isUseWatchdog() -
setUseWatchdog
public void setUseWatchdog(boolean useWatchdog) -
isUseLayoutHints
public boolean isUseLayoutHints()- Since:
- 12.7
-
setUseLayoutHints
public void setUseLayoutHints(boolean useLayoutHints) - Since:
- 12.7
-
isCheckForUpdates
public boolean isCheckForUpdates()- Returns:
- Since:
- 13.1
-
setCheckForUpdates
public void setCheckForUpdates(boolean checkForUpdates) - Since:
- 13.1
-
isBackgroundSignInOnStart
public boolean isBackgroundSignInOnStart() -
setBackgroundSignInOnStart
public void setBackgroundSignInOnStart(boolean backgroundSignInOnStart) -
getWindowState
public int getWindowState() -
setWindowState
public void setWindowState(int windowState) -
isIncludeLifeboatFile
public boolean isIncludeLifeboatFile() -
setIncludeLifeboatFile
public void setIncludeLifeboatFile(boolean includeLifeboatFile) -
getPreviewMode
-
setPreviewMode
-
isServerBasedPreview
public boolean isServerBasedPreview() -
setServerBasedPreview
public void setServerBasedPreview(boolean serverBasedPreview) -
getPreviewServerPort
-
setPreviewServerPort
-
isCheckSpelling
public boolean isCheckSpelling() -
setCheckSpelling
public void setCheckSpelling(boolean checkSpelling) -
isIndexAlbumObjects
public boolean isIndexAlbumObjects() -
setIndexAlbumObjects
public void setIndexAlbumObjects(boolean indexAlbumObjects) -
isIndexMetadata
public boolean isIndexMetadata() -
setIndexMetadata
public void setIndexMetadata(boolean indexMetadata) -
getDateFormatter
- Returns:
- formatter for current date format pattern
- Since:
- 19.3
-
getDatePattern
- Returns:
- Current date format pattern. Empty string = default pattern for locale
- Since:
- 19.3
-
setDatePattern
- Parameters:
pattern
-- Since:
- 19.3
-
isRememberLastSelectedItem
public boolean isRememberLastSelectedItem() -
setRememberLastSelectedItem
public void setRememberLastSelectedItem(boolean rememberLastSelectedItem) -
getLocalServerURL
-
setLocalServerURL
-
bind
Convenience method to add property change listener AND make an initial call, thereby binding the listener to the currently current value- Parameters:
propertyName
-pcl
-- Since:
- 19.3
-
isShowOpenHTMLEditorButton
public boolean isShowOpenHTMLEditorButton() -
setShowOpenHTMLEditorButton
public void setShowOpenHTMLEditorButton(boolean showOpenHTMLEditorButton) -
getBgNotifications
-
setBgNotifications
-
isBackgroundMode
public boolean isBackgroundMode() -
setBackgroundMode
public void setBackgroundMode(boolean backgroundMode) -
isCompressAudioClips
public boolean isCompressAudioClips() -
setCompressAudioClips
public void setCompressAudioClips(boolean compressAudioClips) -
isShowWarnings
public boolean isShowWarnings() -
setShowWarnings
public void setShowWarnings(boolean showWarnings)
-