java.lang.Object
org.jpo.datamodel.Settings
This class defines all the settings for the JPO application. In order for it
to be valid for all objects its components are all static as is the Settings
object itself when created.
The SettingsDialog is the editor for these settings.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdate format for adding new pictures from the camerastatic final StringURL of the document type definition in the xml file.static final intthe default value for maxThumbnailsstatic final intstatic final Dimensionthe minimum Dimension for the InfoPanelstatic final Dimensionthe preferred Dimension for the InfoPanelstatic final StringThe download url for JPOstatic final Dimensionthe minimum Dimension for the Navigator Panelstatic final StringThe URL of the JPO homepagestatic final StringGlobal constant for the current build version of JPOstatic final StringThe download url for JPOstatic final Dimensionthe minimum Dimension for the JPO Windowstatic final Dimensionthe preferred Dimension for the JPO Windowstatic final Dimensionthe preferred Dimension for the Navigator Panelstatic final intThe minimum width for the left panelsstatic final intnumber of recent files shown in the file menustatic final intnumber of user Functionsstatic final Dimensionthe dimension of mini thumbnails in the group foldersstatic final intThe number of thumbnail creation threads to spawn.static final Preferenceshandle to the user Preferencesstatic final DimensionDefault size for buttons such as OK, cancel etc.static final intThe polling interval in milliseconds for the ThumbnailCreationThreads to check Whether there is something new to render.static final Dimensionthe minimum Dimension for the Thumbnail Panelstatic final Dimensionthe preferred Dimension for the Thumbnail Panel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMethod to clear the autoload collection.static voidThis method clears the copy locations and saves the settingsstatic voidThis method clears all the recent collection file names.static JFramereturns the main frame of the application so that other windows can position themselves relative to it.static StringReturns the file to load automatically on startupReturns a list of the registered camerasReturns the list of copy locationsstatic Stringreturns the Language the application is running in.static Localereturns the Locale the application is running in.static DimensionReturns the default dimension for a buttonstatic StringReturns the Google Maps API key that was rememberedstatic StringReturns the default ftp password for Html exportstatic intReturns the default html ftp portstatic StringReturns the default ftp server for the html uploadstatic StringReturns the default directory for the ftp exportstatic StringReturns the ftp port for Html exportstatic floatReturns the default quality for html lowresstatic intReturns the default height for a midres picturestatic floatReturns the default midres quality for htmlstatic intReturns the default width for a midres picturereturns the html ouput target that was last usedstatic intReturns the default number of html pictures per rowDefault Html Picture namingRemembers the ssh authentication typestatic StringRetruns the default ssh key filestatic Stringstatic intstatic StringReturns the default ssh server for the Html exportstatic Stringstatic StringReturns the default user for ssh in the webpage publisherstatic intstatic intstatic intstatic FileThis method returns the most recently used source location.static intReturns the number of threads JPO should spawn to create thumbnails concurrentlystatic intstatic intstatic Dimensionreturns the maximum dimension of images being sent in an emailstatic Stringstatic StringReturns the remembered email recipientsstatic Stringstatic Stringstatic Dimensionstatic Dimensionstatic Dimensionstatic StringRetruns the last used google passwordstatic Stringstatic Colorreturns the default html background colorstatic Colorstatic Colorstatic ResourceBundlestatic RectangleReturns the position and size of the last main windowstatic Settings.FieldCodesstatic RectangleReturns the Last saved position and size of the Picture Viewerstatic Filestatic Loggerstatic MainWindowstatic intstatic intRtruns the maximum width or height the pictures may be scaled to.static intReturns the maximum number of thumbnails to show on the Thumbnail Panelstatic FileThis method returns the most recently used copy location.static intReturns the size choice for a new Picture Viewer window 0 = Maximise 1 = Primary Screen 2 = Secondary Screen 3 = Last Sizestatic PictureCollectionstatic Colorstatic Dimensionstatic Colorstatic intstatic intstatic String[]Returns an array of recently used collectionsstatic Queue<SortableDefaultMutableTreeNode>static ColorReturns the selected colorstatic ColorReturns the color to use for selected textstatic Dimensionstatic DimensionGets the minimum size for short fieldsstatic Dimensionstatic Dimensionstatic Dimensionstatic Dimensionstatic LocalDateTimeReturns the expiry DateTime before which the version alerts shall not be shown.static List<SortOption>returns a List of SortOptionsstatic intReturns the choice the user made about the application window start up size.static String[]static Locale[]static intstatic Dimensionstatic Dimensionstatic Dimensionstatic Dimensionstatic Stringstatic intstatic Fontstatic doublestatic ColorReturns the color to use for unselected textstatic String[]static String[]static booleanReturns if JPO is running in debug modestatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanReturns whether to enlarge small images to screen size or notstatic booleanreturns if images should be scaled in emails sent by JPOstatic booleanstatic booleanReturns if version alerts are supposed to be suppressedstatic booleanstatic booleanstatic booleanstatic booleanreturns if filenames should be shown on the Thumbnail Panestatic booleanstatic booleanreturns if timestamps should be shown on the Thumbails in the Thumbnails Panelstatic booleanreturns if thumbnails should be rendered faster instead of better qualitystatic booleanstatic booleanReturns whether a log should be writtenstatic booleanWhether to write a Robots.txt filestatic voidthis method attempts to load the camerasstatic voidThis method reads the settings from the preferences.static voidmemorizeCopyLocation(String location) This method memorises the directories used in copy operations so that they can be offered as options in drop down lists.static voidmemorizeDefaultSourceLocation(String newLocation) This method memorises the directory used in the most recent Add Pictures operation.static voidThis method memorizes the recent drop targets so that they can be accessed more quickly in subsequent move operations.static voidmemorizeZipFile(String location) This method memorises the zip files used in copy operations so that they can be offered as options in drop down lists.static voidpushRecentCollection(String recentFile) This method memorises a collection file name for the Open > Recent menu.static voidsetAnchorFrame(JFrame anchorFrame) static voidsetAutoLoad(String autoLoad) static voidsetCameras(List<Camera> cameras) Remembers the camerasstatic voidsetDebugMode(boolean newMode) Sets to whether JPO runs in Debug mode or notstatic voidsetDefaultExportHighres(boolean defaultExportHighres) static voidsetDefaultGenerateDHTML(boolean defaultGenerateDHTML) static voidsetDefaultGenerateMap(boolean defaultGenerateMap) Remembers if generate map should be ticked.static voidsetDefaultGenerateMidresHtml(boolean defaultGenerateMidresHtml) static voidsetDefaultGenerateZipfile(boolean defaultGenerateZipfile) Remembers if generate Zip file was tickedstatic voidsetDefaultGoogleMapsApiKey(String defaultGoogleMapsApiKey) Remembers the Google Maps API keystatic voidsetDefaultHtmlFtpPassword(String defaultHtmlFtpPassword) Remebers the default ftp password for Html exportstatic voidsetDefaultHtmlFtpPort(int defaultHtmlFtpPort) Remembers the default html ftp portstatic voidsetDefaultHtmlFtpServer(String defaultHtmlFtpServer) Remembers the default ftp server for the html uploadstatic voidsetDefaultHtmlFtpTargetDir(String defaultHtmlFtpTargetDir) Remembers the default ftp target directory for Html exportstatic voidsetDefaultHtmlFtpUser(String defaultHtmlFtpUser) Remembers the default ftp user accountstatic voidsetDefaultHtmlLowresQuality(float defaultHtmlLowresQuality) static voidsetDefaultHtmlMidresHeight(int defaultHtmlMidresHeight) Remembers the default height for a midres picturestatic voidsetDefaultHtmlMidresQuality(float defaultHtmlMidresQuality) static voidsetDefaultHtmlMidresWidth(int defaultHtmlMidresWidth) Remembers the default width for a midred picturestatic voidsetDefaultHtmlOutputTarget(GenerateWebsiteRequest.OutputTarget defaultHtmlOutputTarget) static voidsetDefaultHtmlPicsPerRow(int defaultHtmlPicsPerRow) static voidsetDefaultHtmlPictureNaming(GenerateWebsiteRequest.PictureNamingType defaultHtmlPictureNaming) Remembers Default Html Picture namingstatic voidsetDefaultHtmlSshAuthType(GenerateWebsiteRequest.SshAuthType defaultHtmlSshAuthType) Remembers the ssh authentication typestatic voidsetDefaultHtmlSshKeyFile(String defaultHtmlSshKeyFile) static voidsetDefaultHtmlSshPassword(String defaultHtmlSshPassword) static voidsetDefaultHtmlSshPort(int defaultHtmlSshPort) static voidsetDefaultHtmlSshServer(String defaultHtmlSshServer) Remembers the default ssh server for Html exportstatic voidsetDefaultHtmlSshTargetDir(String defaultHtmlSshTargetDir) static voidsetDefaultHtmlSshUser(String defaultHtmlSshUser) Remembers the default ssh userstatic voidsetDefaultHtmlThumbnailHeight(int defaultHtmlThumbnailHeight) static voidsetDefaultHtmlThumbnailWidth(int defaultHtmlThumbnailWidth) static voidsetDefaultLinkToHighres(boolean defaultLinkToHighres) static voidsetDefaultRotateHighres(boolean defaultRotateHighres) static voidmethod that set the default parametersstatic voidsetDividerWidth(int dividerWidth) static voidsetDontEnlargeSmallImages(boolean dontEnlargeSmallImages) static voidsetEmailAuthentication(int emailAuthentication) static voidsetEmailDimensions(Dimension emailDimensions) static voidsetEmailPassword(String emailPassword) sets the emailPassword settingstatic voidsetEmailPort(String emailPort) static voidsetEmailScaleImages(boolean emailScaleImages) remember if email images should be scaledstatic voidsetEmailSendOriginal(boolean emailSendOriginal) static voidsetEmailServer(String emailServer) static voidsetEmailUser(String emailUser) static voidsetGooglePassword(String googlePassword) Remembers the Google passwordstatic voidsetGoogleUsername(String googleUsername) static voidsetHtmlBackgroundColor(Color htmlBackgroundColor) Remembers the default html background colorstatic voidsetHtmlFontColor(Color htmlFontColor) static voidsetIgnoreVersionAlerts(boolean ignore) Remembers the user choice about prompting version alertsstatic voidsetJpoResources(ResourceBundle jpoResources) static voidsetLastCameraWizardCopyMode(boolean lastCameraWizardCopyMode) static voidsetLastMainFrameCoordinates(Rectangle mainFrameCoordinates) Remembers the position and size of the last Main Windowstatic voidsetLastSortChoice(Settings.FieldCodes lastSortChoice) static voidsetLastViewerCoordinates(Rectangle lastViewerCoordinates) Remembers the last saved position and size of the Picture Viewerstatic booleanSets the new locale.static voidsetLogfile(File logfile) static voidsetMainWindow(MainWindow newMainWindow) static voidsetMaximumPictureSize(int maximumPictureSize) static voidsetMaxThumbnails(int maxThumbnails) Remembers the maximum number of thumbnails to show on the Thumbnail Panelstatic voidsetNewViewerSizeChoice(int newViewerSizeChoice) Remembers the choice for new Picture Viewer windowsstatic voidsetPictureCollection(PictureCollection pictureCollection) static voidsetPictureViewerFastScale(boolean pictureViewerFastScale) static voidsetPreferredLeftDividerSpot(int preferredLeftDividerSpot) static voidsetPreferredMasterDividerSpot(int preferredMasterDividerSpot) static voidsetRememberGoogleCredentials(boolean rememberGoogleCredentials) static voidsetShowFilenamesOnThumbnailPanel(boolean showFilenamesOnThumbnailPanel) Stores whether filenames should be shown on the Thumbnail panestatic voidsetShowThumbOnFileChooser(boolean showThumbOnFileChooser) static voidsetShowTimestampsOnThumbnailPanel(boolean showTimestampsOnThumbnailPanel) Stores the default choice for fast scalingstatic voidsetSnoozeVersionAlertsExpiryDateTime(LocalDateTime expiryDateTime) Records the expiry DateTime before which the version alerts shall not be shown.static voidsetStartupSizeChoice(int startupSizeChoice) Remembers if the choice for the startup sizestatic voidsetTagCloudWords(int tagCloudWords) static voidsetThumbnailFastScale(boolean thumbnailFastScale) Stores the default choice for fast scalingstatic voidsetThumbnailSize(int thumbnailSize) static voidsetUiScale(double uiScale) static voidsetUnsavedSettingChanges(boolean unsavedSettingChanges) static voidsetWriteLog(boolean writeLog) Sets the writeLog flagstatic voidsetWriteRobotsTxt(boolean writeRobotsTxt) Remembers whether to write a robots.txt filestatic voidThis method validates that the copy locations are valid directories and removes those that don't existstatic voidmethod that validates the settings & brings up the Settings dialog if not okstatic voidWrites the cameras collection to the preferences.static voidThis method writes the settings to the Preferences object which was added to Java with 1.4
-
Field Details
-
DEFAULT_MAX_THUMBNAILS
public static final int DEFAULT_MAX_THUMBNAILSthe default value for maxThumbnails- See Also:
-
miniThumbnailSize
the dimension of mini thumbnails in the group folders -
LEFT_PANEL_MINIMUM_WIDTH
public static final int LEFT_PANEL_MINIMUM_WIDTHThe minimum width for the left panels- See Also:
-
INFO_PANEL_MINIMUM_DIMENSION
the minimum Dimension for the InfoPanel -
INFO_PANEL_PREFERRED_SIZE
the preferred Dimension for the InfoPanel -
JPO_NAVIGATOR_JTABBEDPANE_MINIMUM_SIZE
the minimum Dimension for the Navigator Panel -
THUMBNAIL_CREATION_THREAD_POLLING_TIME
public static final int THUMBNAIL_CREATION_THREAD_POLLING_TIMEThe polling interval in milliseconds for the ThumbnailCreationThreads to check Whether there is something new to render.- See Also:
-
NUMBER_OF_THUMBNAIL_CREATION_THREADS
public static final int NUMBER_OF_THUMBNAIL_CREATION_THREADSThe number of thumbnail creation threads to spawn.- See Also:
-
MAX_MEMORISE
public static final int MAX_MEMORISEnumber of recent files shown in the file menu- See Also:
-
COLLECTION_DTD
URL of the document type definition in the xml file.- See Also:
-
THREE_DOT_BUTTON_DIMENSION
Default size for buttons such as OK, cancel etc. -
ADD_FROM_CAMERA_DATE_FORMAT
date format for adding new pictures from the camera- See Also:
-
prefs
handle to the user Preferences -
MAX_USER_FUNCTIONS
public static final int MAX_USER_FUNCTIONSnumber of user Functions- See Also:
-
JPO_VERSION
Global constant for the current build version of JPO- See Also:
-
JPO_URL
The URL of the JPO homepage- See Also:
-
JPO_DOWNLOAD_URL
The download url for JPO- See Also:
-
JPO_VERSION_URL
The download url for JPO- See Also:
-
DEFAULT_THUMBNAIL_CREATION_THREADS
public static final int DEFAULT_THUMBNAIL_CREATION_THREADS- See Also:
-
THUMBNAIL_JSCROLLPANE_MINIMUM_SIZE
the minimum Dimension for the Thumbnail Panel -
thumbnailJScrollPanePreferredSize
the preferred Dimension for the Thumbnail Panel -
jpoJFrameMinimumSize
the minimum Dimension for the JPO Window -
jpoJFramePreferredSize
the preferred Dimension for the JPO Window
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
getUiScale
public static double getUiScale() -
setUiScale
public static void setUiScale(double uiScale) -
getPictureCollection
- Returns:
- the main pictureCollection
-
setPictureCollection
- Parameters:
pictureCollection- the pictureCollection to set
-
isWriteLog
public static boolean isWriteLog()Returns whether a log should be written- Returns:
- true if a log should be written.
-
setWriteLog
public static void setWriteLog(boolean writeLog) Sets the writeLog flag- Parameters:
writeLog- the value to set the writelog flag to.
-
getStartupSizeChoice
public static int getStartupSizeChoice()Returns the choice the user made about the application window start up size. 0 = Maximise 1 = Primary Screen 2 = Secondary Screen 3 = Last Size- Returns:
- true if the window should be maxunused on JPO startup
-
setStartupSizeChoice
public static void setStartupSizeChoice(int startupSizeChoice) Remembers if the choice for the startup size- Parameters:
startupSizeChoice- The choice value to remember
-
getLastMainFrameCoordinates
Returns the position and size of the last main window- Returns:
- the position and size of the last main window
-
setLastMainFrameCoordinates
Remembers the position and size of the last Main Window- Parameters:
mainFrameCoordinates- The position and size of the last main window
-
getNewViewerSizeChoice
public static int getNewViewerSizeChoice()Returns the size choice for a new Picture Viewer window 0 = Maximise 1 = Primary Screen 2 = Secondary Screen 3 = Last Size- Returns:
- the size choice for a new Picture Viewer window
-
setNewViewerSizeChoice
public static void setNewViewerSizeChoice(int newViewerSizeChoice) Remembers the choice for new Picture Viewer windows- Parameters:
newViewerSizeChoice- The choice to remember
-
getLastViewerCoordinates
Returns the Last saved position and size of the Picture Viewer- Returns:
- the last saved position and size of the Picture Viewer
-
setLastViewerCoordinates
Remembers the last saved position and size of the Picture Viewer- Parameters:
lastViewerCoordinates- the last position and size of the Picture Viewer
-
getMaxThumbnails
public static int getMaxThumbnails()Returns the maximum number of thumbnails to show on the Thumbnail Panel- Returns:
- the maximum number of thumbnails to show on the Thumbnail Panel
-
setMaxThumbnails
public static void setMaxThumbnails(int maxThumbnails) Remembers the maximum number of thumbnails to show on the Thumbnail Panel- Parameters:
maxThumbnails- The number to remember
-
getThumbnailSize
public static int getThumbnailSize() -
setThumbnailSize
public static void setThumbnailSize(int thumbnailSize) -
getAutoLoad
Returns the file to load automatically on startup- Returns:
- the file to load on startup
-
setAutoLoad
-
clearAutoLoad
public static void clearAutoLoad()Method to clear the autoload collection. -
getRecentCollections
Returns an array of recently used collections- Returns:
- the array of recently used collections
-
isDontEnlargeSmallImages
public static boolean isDontEnlargeSmallImages()Returns whether to enlarge small images to screen size or not- Returns:
- whether to enlarge images that are smaller than the screen
-
setDontEnlargeSmallImages
public static void setDontEnlargeSmallImages(boolean dontEnlargeSmallImages) -
isUnsavedSettingChanges
public static boolean isUnsavedSettingChanges() -
setUnsavedSettingChanges
public static void setUnsavedSettingChanges(boolean unsavedSettingChanges) -
getAnchorFrame
returns the main frame of the application so that other windows can position themselves relative to it.- Returns:
- the positon of the main frame
-
setAnchorFrame
-
getThumbnailCacheDirectory
-
getMaximumPictureSize
public static int getMaximumPictureSize()Rtruns the maximum width or height the pictures may be scaled to. Intended to prevent the JVM blowing out of memory- Returns:
- The maximum number of pixels an image may become wide or high
-
setMaximumPictureSize
public static void setMaximumPictureSize(int maximumPictureSize) -
getFilenameFieldPreferredSize
-
getFilenameFieldMinimumSize
-
getFilenameFieldMaximumSize
-
getShortFieldPreferredSize
-
getShortFieldMinimumSize
Gets the minimum size for short fields- Returns:
- the minimum size for short fields
-
getShortFieldMaximumSize
-
getTextfieldPreferredSize
-
getTextfieldMinimumSize
-
getTextfieldMaximumSize
-
getShortNumberPreferredSize
-
getShortNumberMinimumSize
-
getShortNumberMaximumSize
-
getThreeDotButtonSize
-
getTitleFont
-
getDefaultHtmlPicsPerRow
public static int getDefaultHtmlPicsPerRow()Returns the default number of html pictures per row- Returns:
- the default number of html pictures per row
-
setDefaultHtmlPicsPerRow
public static void setDefaultHtmlPicsPerRow(int defaultHtmlPicsPerRow) -
getDefaultHtmlThumbnailWidth
public static int getDefaultHtmlThumbnailWidth() -
setDefaultHtmlThumbnailWidth
public static void setDefaultHtmlThumbnailWidth(int defaultHtmlThumbnailWidth) -
getDefaultHtmlThumbnailHeight
public static int getDefaultHtmlThumbnailHeight() -
setDefaultHtmlThumbnailHeight
public static void setDefaultHtmlThumbnailHeight(int defaultHtmlThumbnailHeight) -
isDefaultGenerateMidresHtml
public static boolean isDefaultGenerateMidresHtml() -
setDefaultGenerateMidresHtml
public static void setDefaultGenerateMidresHtml(boolean defaultGenerateMidresHtml) -
isDefaultGenerateMap
public static boolean isDefaultGenerateMap() -
setDefaultGenerateMap
public static void setDefaultGenerateMap(boolean defaultGenerateMap) Remembers if generate map should be ticked.- Parameters:
defaultGenerateMap- whether generate map should be ticked
-
isDefaultGenerateDHTML
public static boolean isDefaultGenerateDHTML() -
setDefaultGenerateDHTML
public static void setDefaultGenerateDHTML(boolean defaultGenerateDHTML) -
isDefaultGenerateZipfile
public static boolean isDefaultGenerateZipfile() -
setDefaultGenerateZipfile
public static void setDefaultGenerateZipfile(boolean defaultGenerateZipfile) Remembers if generate Zip file was ticked- Parameters:
defaultGenerateZipfile- the value to remember
-
isDefaultLinkToHighres
public static boolean isDefaultLinkToHighres() -
setDefaultLinkToHighres
public static void setDefaultLinkToHighres(boolean defaultLinkToHighres) -
isDefaultExportHighres
public static boolean isDefaultExportHighres() -
setDefaultExportHighres
public static void setDefaultExportHighres(boolean defaultExportHighres) -
isDefaultRotateHighres
public static boolean isDefaultRotateHighres() -
setDefaultRotateHighres
public static void setDefaultRotateHighres(boolean defaultRotateHighres) -
getDefaultHtmlMidresWidth
public static int getDefaultHtmlMidresWidth()Returns the default width for a midres picture- Returns:
- the default width
-
setDefaultHtmlMidresWidth
public static void setDefaultHtmlMidresWidth(int defaultHtmlMidresWidth) Remembers the default width for a midred picture- Parameters:
defaultHtmlMidresWidth- the widthto remember
-
getDefaultHtmlMidresHeight
public static int getDefaultHtmlMidresHeight()Returns the default height for a midres picture- Returns:
- the default height
-
setDefaultHtmlMidresHeight
public static void setDefaultHtmlMidresHeight(int defaultHtmlMidresHeight) Remembers the default height for a midres picture- Parameters:
defaultHtmlMidresHeight- the height to remember
-
getDefaultHtmlPictureNaming
Default Html Picture naming- Returns:
- the default
-
setDefaultHtmlPictureNaming
public static void setDefaultHtmlPictureNaming(GenerateWebsiteRequest.PictureNamingType defaultHtmlPictureNaming) Remembers Default Html Picture naming- Parameters:
defaultHtmlPictureNaming- the new default
-
getDefaultHtmlOutputTarget
returns the html ouput target that was last used- Returns:
- the html output target
-
setDefaultHtmlOutputTarget
public static void setDefaultHtmlOutputTarget(GenerateWebsiteRequest.OutputTarget defaultHtmlOutputTarget) -
getHtmlBackgroundColor
returns the default html background color- Returns:
- the default background color
-
setHtmlBackgroundColor
Remembers the default html background color- Parameters:
htmlBackgroundColor- the color to remember
-
getHtmlFontColor
-
setHtmlFontColor
-
getDefaultHtmlLowresQuality
public static float getDefaultHtmlLowresQuality()Returns the default quality for html lowres- Returns:
- the default quality setting
-
setDefaultHtmlLowresQuality
public static void setDefaultHtmlLowresQuality(float defaultHtmlLowresQuality) -
getDefaultHtmlMidresQuality
public static float getDefaultHtmlMidresQuality()Returns the default midres quality for html- Returns:
- the default midres quality
-
setDefaultHtmlMidresQuality
public static void setDefaultHtmlMidresQuality(float defaultHtmlMidresQuality) -
isWriteRobotsTxt
public static boolean isWriteRobotsTxt()Whether to write a Robots.txt file- Returns:
- whether to write a Robots.txt file
-
setWriteRobotsTxt
public static void setWriteRobotsTxt(boolean writeRobotsTxt) Remembers whether to write a robots.txt file- Parameters:
writeRobotsTxt- Remembers whether to write a robots.txt file
-
getDefaultHtmlFtpServer
Returns the default ftp server for the html upload- Returns:
- the default ftp server
-
setDefaultHtmlFtpServer
Remembers the default ftp server for the html upload- Parameters:
defaultHtmlFtpServer- the ftp server to remember
-
getDefaultHtmlFtpPort
public static int getDefaultHtmlFtpPort()Returns the default html ftp port- Returns:
- the default html ftp port
-
setDefaultHtmlFtpPort
public static void setDefaultHtmlFtpPort(int defaultHtmlFtpPort) Remembers the default html ftp port- Parameters:
defaultHtmlFtpPort- the port to remember
-
getDefaultHtmlFtpUser
Returns the ftp port for Html export- Returns:
- the default ftp port for the Html export
-
setDefaultHtmlFtpUser
Remembers the default ftp user account- Parameters:
defaultHtmlFtpUser- the new ftp user to remember
-
getDefaultHtmlFtpPassword
Returns the default ftp password for Html export- Returns:
- the default ftp password
-
setDefaultHtmlFtpPassword
Remebers the default ftp password for Html export- Parameters:
defaultHtmlFtpPassword- The default password for the ftp export
-
getDefaultHtmlFtpTargetDir
Returns the default directory for the ftp export- Returns:
- The default directory for the ftp target
-
setDefaultHtmlFtpTargetDir
Remembers the default ftp target directory for Html export- Parameters:
defaultHtmlFtpTargetDir- The default ftp target directory
-
getDefaultHtmlSshServer
Returns the default ssh server for the Html export- Returns:
- the default ssh server for the Html export
-
setDefaultHtmlSshServer
Remembers the default ssh server for Html export- Parameters:
defaultHtmlSshServer- The default ssh server for Html export
-
getDefaultHtmlSshPort
public static int getDefaultHtmlSshPort() -
setDefaultHtmlSshPort
public static void setDefaultHtmlSshPort(int defaultHtmlSshPort) -
getDefaultHtmlSshUser
Returns the default user for ssh in the webpage publisher- Returns:
- the default ssh user
-
setDefaultHtmlSshUser
Remembers the default ssh user- Parameters:
defaultHtmlSshUser- the ssh user to remember
-
getDefaultHtmlSshAuthType
Remembers the ssh authentication type- Returns:
- the authentication type
-
setDefaultHtmlSshAuthType
public static void setDefaultHtmlSshAuthType(GenerateWebsiteRequest.SshAuthType defaultHtmlSshAuthType) Remembers the ssh authentication type- Parameters:
defaultHtmlSshAuthType- the ssh authentication type to remember
-
getDefaultHtmlSshPassword
-
setDefaultHtmlSshPassword
-
getDefaultHtmlSshTargetDir
-
setDefaultHtmlSshTargetDir
-
getDefaultHtmlSshKeyFile
Retruns the default ssh key file- Returns:
- the default ssh key file
-
setDefaultHtmlSshKeyFile
-
isThumbnailFastScale
public static boolean isThumbnailFastScale()returns if thumbnails should be rendered faster instead of better quality- Returns:
- true if speed is desired
-
setThumbnailFastScale
public static void setThumbnailFastScale(boolean thumbnailFastScale) Stores the default choice for fast scaling- Parameters:
thumbnailFastScale- true is fast scaling should be used false if not.
-
isShowFilenamesOnThumbnailPanel
public static boolean isShowFilenamesOnThumbnailPanel()returns if filenames should be shown on the Thumbnail Pane- Returns:
- true if filenames should be shown
-
setShowFilenamesOnThumbnailPanel
public static void setShowFilenamesOnThumbnailPanel(boolean showFilenamesOnThumbnailPanel) Stores whether filenames should be shown on the Thumbnail pane- Parameters:
showFilenamesOnThumbnailPanel- the new value
-
isShowTimestampsOnThumbnailPanel
public static boolean isShowTimestampsOnThumbnailPanel()returns if timestamps should be shown on the Thumbails in the Thumbnails Panel- Returns:
- true if timestamps should be shown
-
setShowTimestampsOnThumbnailPanel
public static void setShowTimestampsOnThumbnailPanel(boolean showTimestampsOnThumbnailPanel) Stores the default choice for fast scaling- Parameters:
showTimestampsOnThumbnailPanel- the new value
-
isPictureViewerFastScale
public static boolean isPictureViewerFastScale() -
setPictureViewerFastScale
public static void setPictureViewerFastScale(boolean pictureViewerFastScale) -
isShowThumbOnFileChooser
public static boolean isShowThumbOnFileChooser() -
setShowThumbOnFileChooser
public static void setShowThumbOnFileChooser(boolean showThumbOnFileChooser) -
getDefaultButtonDimension
Returns the default dimension for a button- Returns:
- the default dimension for a button
-
getDefaultGoogleMapsApiKey
Returns the Google Maps API key that was remembered- Returns:
- the remembered Google Maps API key
-
setDefaultGoogleMapsApiKey
Remembers the Google Maps API key- Parameters:
defaultGoogleMapsApiKey- the key to remember
-
getSortOptions
returns a List of SortOptions- Returns:
- the List of sort options
-
getSelectedColor
Returns the selected color- Returns:
- the selected color
-
getSelectedColorText
Returns the color to use for selected text- Returns:
- the color to use for selected text
-
getUnselectedColor
Returns the color to use for unselected text- Returns:
- the color to use for unselected text
-
getCameras
Returns a list of the registered cameras- Returns:
- the lsit of cameras
-
setCameras
Remembers the cameras- Parameters:
cameras- the cameras to remember
-
getEmailSenders
-
getLogfile
-
setLogfile
-
getEmailRecipients
Returns the remembered email recipients- Returns:
- the email recipients
-
getEmailServer
-
setEmailServer
-
getLOGGER
-
getPreferredMasterDividerSpot
public static int getPreferredMasterDividerSpot() -
setPreferredMasterDividerSpot
public static void setPreferredMasterDividerSpot(int preferredMasterDividerSpot) -
getPreferredLeftDividerSpot
public static int getPreferredLeftDividerSpot() -
setPreferredLeftDividerSpot
public static void setPreferredLeftDividerSpot(int preferredLeftDividerSpot) -
getDividerWidth
public static int getDividerWidth() -
setDividerWidth
public static void setDividerWidth(int dividerWidth) -
getDefaultMaxThumbnails
public static int getDefaultMaxThumbnails() -
getEmailPort
-
setEmailPort
-
getEmailAuthentication
public static int getEmailAuthentication() -
setEmailAuthentication
public static void setEmailAuthentication(int emailAuthentication) -
getEmailUser
-
setEmailUser
-
getEmailPassword
-
setEmailPassword
sets the emailPassword setting- Parameters:
emailPassword- the email password to remember
-
isEmailScaleImages
public static boolean isEmailScaleImages()returns if images should be scaled in emails sent by JPO- Returns:
- true if images should be scaled in emails sent by JPO
-
setEmailScaleImages
public static void setEmailScaleImages(boolean emailScaleImages) remember if email images should be scaled- Parameters:
emailScaleImages- whether email images should be scaled
-
getEmailDimensions
returns the maximum dimension of images being sent in an email- Returns:
- the maximum dimension of an image being sent in an email
-
setEmailDimensions
-
isEmailSendOriginal
public static boolean isEmailSendOriginal() -
setEmailSendOriginal
public static void setEmailSendOriginal(boolean emailSendOriginal) -
getJpoBackgroundColor
-
getPictureviewerBackgroundColor
-
getPictureviewerTextColor
-
getPictureviewerMinimumSize
-
getTagCloudWords
public static int getTagCloudWords() -
setTagCloudWords
public static void setTagCloudWords(int tagCloudWords) -
getLastSortChoice
-
setLastSortChoice
-
isLastCameraWizardCopyMode
public static boolean isLastCameraWizardCopyMode() -
setLastCameraWizardCopyMode
public static void setLastCameraWizardCopyMode(boolean lastCameraWizardCopyMode) -
isRememberGoogleCredentials
public static boolean isRememberGoogleCredentials() -
setRememberGoogleCredentials
public static void setRememberGoogleCredentials(boolean rememberGoogleCredentials) -
getGoogleUsername
-
setGoogleUsername
-
getGooglePassword
Retruns the last used google password- Returns:
- the last used google password
-
setGooglePassword
Remembers the Google password- Parameters:
googlePassword- the Google password
-
isDebugMode
public static boolean isDebugMode()Returns if JPO is running in debug mode- Returns:
- true if we are in debug mode
-
setDebugMode
public static void setDebugMode(boolean newMode) Sets to whether JPO runs in Debug mode or not- Parameters:
newMode- the new mode.
-
setDefaults
public static void setDefaults()method that set the default parameters -
loadSettings
public static void loadSettings()This method reads the settings from the preferences. -
validateSettings
public static void validateSettings()method that validates the settings & brings up the Settings dialog if not ok -
writeSettings
public static void writeSettings()This method writes the settings to the Preferences object which was added to Java with 1.4 -
writeCameraSettings
public static void writeCameraSettings()Writes the cameras collection to the preferences. Uses an idea presented by Greg Travis on this IBM website: ... -
loadCameraSettings
public static void loadCameraSettings()this method attempts to load the cameras -
pushRecentCollection
This method memorises a collection file name for the Open > Recent menu.The caller should notify any listeners that the recentCollections changed by sending a
JpoEventBus.getInstance().post( new RecentCollectionsChangedEvent() );- Parameters:
recentFile- The collection file name to be memorised
-
clearRecentCollection
public static void clearRecentCollection()This method clears all the recent collection file names.The caller should notify any listeners that the recentCollections changed by sending a
JpoEventBus.getInstance().post( new RecentCollectionsChangedEvent() ); -
getCurrentLocale
returns the Locale the application is running in.- Returns:
- The locale set by environment, default, user or persistent settings.
-
getCurrentLanguage
returns the Language the application is running in.- Returns:
- The Language
-
getSupportedLanguages
-
getSupportedLocale
-
setLocale
Sets the new locale. As of 3 Apr 2014 this doesn't send a LocaleChangeEvent anymore. Instead, the widget changing the locale is expected to send a LocaledChangedEvent- Parameters:
newLocale- the new locale- Returns:
- true if the locale was changed, false if not.
-
getJpoResources
-
setJpoResources
-
getMaxDropnodes
public static int getMaxDropnodes() -
getRecentDropNodes
-
memorizeGroupOfDropLocation
This method memorizes the recent drop targets so that they can be accessed more quickly in subsequent move operations. After calling this method send aRecentDropNodesChangedEventonto the EventBus so that GUI widgets can update themselves. Nodes are only added once.JpoEventBus.getInstance().post( new RecentDropNodesChangedEvent() );- Parameters:
recentNode- The recent drop target to add
-
getCopyLocations
Returns the list of copy locations- Returns:
- the list of copy locations
-
getMemorizedZipFiles
-
memorizeCopyLocation
This method memorises the directories used in copy operations so that they can be offered as options in drop down lists.The callers of this method need to make sure they notify interested listeners of a change by calling:
JpoEventBus.getInstance().post( new CopyLocationsChangedEvent() );- Parameters:
location- The new location to memorise
-
memorizeDefaultSourceLocation
This method memorises the directory used in the most recent Add Pictures operation. The location is only memorised if it points to a valid directory.- Parameters:
newLocation- The new location to memorise
-
memorizeZipFile
This method memorises the zip files used in copy operations so that they can be offered as options in drop down lists.- Parameters:
location- The new zip file to memorise
-
validateCopyLocations
public static void validateCopyLocations()This method validates that the copy locations are valid directories and removes those that don't exist -
clearCopyLocations
public static void clearCopyLocations()This method clears the copy locations and saves the settings -
getDefaultSourceLocation
This method returns the most recently used source location. If there is no most recent sourceLocation then the user's home directory is returned.- Returns:
- Returns the most recent source location directory or the user's home directory
-
getMostRecentCopyLocation
This method returns the most recently used copy location. If there is no most recent copyLocation then the user's home directory is returned.- Returns:
- Returns the most recent copy location directory or the user's home directory
-
getUserFunctionNames
-
getUserFunctionCmd
-
getMainWindow
-
setMainWindow
-
isIgnoreVersionAlerts
public static boolean isIgnoreVersionAlerts()Returns if version alerts are supposed to be suppressed- Returns:
- true if version alerts are supposed to be suppressed
-
setIgnoreVersionAlerts
public static void setIgnoreVersionAlerts(boolean ignore) Remembers the user choice about prompting version alerts- Parameters:
ignore- send true to turn off version alerting
-
setSnoozeVersionAlertsExpiryDateTime
Records the expiry DateTime before which the version alerts shall not be shown.- Parameters:
expiryDateTime- the expiry DateTime for the snooze
-
getSnoozeVersionAlertsExpiryDateTime
Returns the expiry DateTime before which the version alerts shall not be shown.- Returns:
- The timestamp before which alerts shall not be shown
-
getDefaultThumbnailCreationThreads
public static int getDefaultThumbnailCreationThreads()Returns the number of threads JPO should spawn to create thumbnails concurrently- Returns:
- The number of threads to spawn
-