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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
date format for adding new pictures from the camerastatic final String
URL of the document type definition in the xml file.static final int
the default value for maxThumbnailsstatic final int
static final Dimension
the minimum Dimension for the InfoPanelstatic final Dimension
the preferred Dimension for the InfoPanelstatic final String
The download url for JPOstatic final Dimension
the minimum Dimension for the Navigator Panelstatic final String
The URL of the JPO homepagestatic final String
Global constant for the current build version of JPOstatic final String
The download url for JPOstatic final Dimension
the minimum Dimension for the JPO Windowstatic final Dimension
the preferred Dimension for the JPO Windowstatic final Dimension
the preferred Dimension for the Navigator Panelstatic final int
The minimum width for the left panelsstatic final int
number of recent files shown in the file menustatic final int
number of user Functionsstatic final Dimension
the dimension of mini thumbnails in the group foldersstatic final int
The number of thumbnail creation threads to spawn.static final Preferences
handle to the user Preferencesstatic final Dimension
Default size for buttons such as OK, cancel etc.static final int
The polling interval in milliseconds for the ThumbnailCreationThreads to check Whether there is something new to render.static final Dimension
the minimum Dimension for the Thumbnail Panelstatic final Dimension
the preferred Dimension for the Thumbnail Panel -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Method to clear the autoload collection.static void
This method clears the copy locations and saves the settingsstatic void
This method clears all the recent collection file names.static JFrame
returns the main frame of the application so that other windows can position themselves relative to it.static String
Returns the file to load automatically on startupReturns a list of the registered camerasReturns the list of copy locationsstatic String
returns the Language the application is running in.static Locale
returns the Locale the application is running in.static Dimension
Returns the default dimension for a buttonstatic String
Returns the Google Maps API key that was rememberedstatic String
Returns the default ftp password for Html exportstatic int
Returns the default html ftp portstatic String
Returns the default ftp server for the html uploadstatic String
Returns the default directory for the ftp exportstatic String
Returns the ftp port for Html exportstatic float
Returns the default quality for html lowresstatic int
Returns the default height for a midres picturestatic float
Returns the default midres quality for htmlstatic int
Returns the default width for a midres picturereturns the html ouput target that was last usedstatic int
Returns the default number of html pictures per rowDefault Html Picture namingRemembers the ssh authentication typestatic String
Retruns the default ssh key filestatic String
static int
static String
Returns the default ssh server for the Html exportstatic String
static String
Returns the default user for ssh in the webpage publisherstatic int
static int
static int
static File
This method returns the most recently used source location.static int
Returns the number of threads JPO should spawn to create thumbnails concurrentlystatic int
static int
static Dimension
returns the maximum dimension of images being sent in an emailstatic String
static String
Returns the remembered email recipientsstatic String
static String
static Dimension
static Dimension
static Dimension
static String
Retruns the last used google passwordstatic String
static Color
returns the default html background colorstatic Color
static Color
static ResourceBundle
static Rectangle
Returns the position and size of the last main windowstatic Settings.FieldCodes
static Rectangle
Returns the Last saved position and size of the Picture Viewerstatic File
static Logger
static MainWindow
static int
static int
Rtruns the maximum width or height the pictures may be scaled to.static int
Returns the maximum number of thumbnails to show on the Thumbnail Panelstatic File
This method returns the most recently used copy location.static int
Returns the size choice for a new Picture Viewer window 0 = Maximise 1 = Primary Screen 2 = Secondary Screen 3 = Last Sizestatic PictureCollection
static Color
static Dimension
static Color
static int
static int
static String[]
Returns an array of recently used collectionsstatic Queue<SortableDefaultMutableTreeNode>
static Color
Returns the selected colorstatic Color
Returns the color to use for selected textstatic Dimension
static Dimension
Gets the minimum size for short fieldsstatic Dimension
static Dimension
static Dimension
static Dimension
static LocalDateTime
Returns the expiry DateTime before which the version alerts shall not be shown.static List<SortOption>
returns a List of SortOptionsstatic int
Returns the choice the user made about the application window start up size.static String[]
static Locale[]
static int
static Dimension
static Dimension
static Dimension
static Dimension
static String
static int
static Font
static double
static Color
Returns the color to use for unselected textstatic String[]
static String[]
static boolean
Returns if JPO is running in debug modestatic boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Returns whether to enlarge small images to screen size or notstatic boolean
returns if images should be scaled in emails sent by JPOstatic boolean
static boolean
Returns if version alerts are supposed to be suppressedstatic boolean
static boolean
static boolean
static boolean
returns if filenames should be shown on the Thumbnail Panestatic boolean
static boolean
returns if timestamps should be shown on the Thumbails in the Thumbnails Panelstatic boolean
returns if thumbnails should be rendered faster instead of better qualitystatic boolean
static boolean
Returns whether a log should be writtenstatic boolean
Whether to write a Robots.txt filestatic void
this method attempts to load the camerasstatic void
This method reads the settings from the preferences.static void
memorizeCopyLocation
(String location) This method memorises the directories used in copy operations so that they can be offered as options in drop down lists.static void
memorizeDefaultSourceLocation
(String newLocation) This method memorises the directory used in the most recent Add Pictures operation.static void
This method memorizes the recent drop targets so that they can be accessed more quickly in subsequent move operations.static void
memorizeZipFile
(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 void
pushRecentCollection
(String recentFile) This method memorises a collection file name for the Open > Recent menu.static void
setAnchorFrame
(JFrame anchorFrame) static void
setAutoLoad
(String autoLoad) static void
setCameras
(List<Camera> cameras) Remembers the camerasstatic void
setDebugMode
(boolean newMode) Sets to whether JPO runs in Debug mode or notstatic void
setDefaultExportHighres
(boolean defaultExportHighres) static void
setDefaultGenerateDHTML
(boolean defaultGenerateDHTML) static void
setDefaultGenerateMap
(boolean defaultGenerateMap) Remembers if generate map should be ticked.static void
setDefaultGenerateMidresHtml
(boolean defaultGenerateMidresHtml) static void
setDefaultGenerateZipfile
(boolean defaultGenerateZipfile) Remembers if generate Zip file was tickedstatic void
setDefaultGoogleMapsApiKey
(String defaultGoogleMapsApiKey) Remembers the Google Maps API keystatic void
setDefaultHtmlFtpPassword
(String defaultHtmlFtpPassword) Remebers the default ftp password for Html exportstatic void
setDefaultHtmlFtpPort
(int defaultHtmlFtpPort) Remembers the default html ftp portstatic void
setDefaultHtmlFtpServer
(String defaultHtmlFtpServer) Remembers the default ftp server for the html uploadstatic void
setDefaultHtmlFtpTargetDir
(String defaultHtmlFtpTargetDir) Remembers the default ftp target directory for Html exportstatic void
setDefaultHtmlFtpUser
(String defaultHtmlFtpUser) Remembers the default ftp user accountstatic void
setDefaultHtmlLowresQuality
(float defaultHtmlLowresQuality) static void
setDefaultHtmlMidresHeight
(int defaultHtmlMidresHeight) Remembers the default height for a midres picturestatic void
setDefaultHtmlMidresQuality
(float defaultHtmlMidresQuality) static void
setDefaultHtmlMidresWidth
(int defaultHtmlMidresWidth) Remembers the default width for a midred picturestatic void
setDefaultHtmlOutputTarget
(GenerateWebsiteRequest.OutputTarget defaultHtmlOutputTarget) static void
setDefaultHtmlPicsPerRow
(int defaultHtmlPicsPerRow) static void
setDefaultHtmlPictureNaming
(GenerateWebsiteRequest.PictureNamingType defaultHtmlPictureNaming) Remembers Default Html Picture namingstatic void
setDefaultHtmlSshAuthType
(GenerateWebsiteRequest.SshAuthType defaultHtmlSshAuthType) Remembers the ssh authentication typestatic void
setDefaultHtmlSshKeyFile
(String defaultHtmlSshKeyFile) static void
setDefaultHtmlSshPassword
(String defaultHtmlSshPassword) static void
setDefaultHtmlSshPort
(int defaultHtmlSshPort) static void
setDefaultHtmlSshServer
(String defaultHtmlSshServer) Remembers the default ssh server for Html exportstatic void
setDefaultHtmlSshTargetDir
(String defaultHtmlSshTargetDir) static void
setDefaultHtmlSshUser
(String defaultHtmlSshUser) Remembers the default ssh userstatic void
setDefaultHtmlThumbnailHeight
(int defaultHtmlThumbnailHeight) static void
setDefaultHtmlThumbnailWidth
(int defaultHtmlThumbnailWidth) static void
setDefaultLinkToHighres
(boolean defaultLinkToHighres) static void
setDefaultRotateHighres
(boolean defaultRotateHighres) static void
method that set the default parametersstatic void
setDividerWidth
(int dividerWidth) static void
setDontEnlargeSmallImages
(boolean dontEnlargeSmallImages) static void
setEmailAuthentication
(int emailAuthentication) static void
setEmailDimensions
(Dimension emailDimensions) static void
setEmailPassword
(String emailPassword) sets the emailPassword settingstatic void
setEmailPort
(String emailPort) static void
setEmailScaleImages
(boolean emailScaleImages) remember if email images should be scaledstatic void
setEmailSendOriginal
(boolean emailSendOriginal) static void
setEmailServer
(String emailServer) static void
setEmailUser
(String emailUser) static void
setGooglePassword
(String googlePassword) Remembers the Google passwordstatic void
setGoogleUsername
(String googleUsername) static void
setHtmlBackgroundColor
(Color htmlBackgroundColor) Remembers the default html background colorstatic void
setHtmlFontColor
(Color htmlFontColor) static void
setIgnoreVersionAlerts
(boolean ignore) Remembers the user choice about prompting version alertsstatic void
setJpoResources
(ResourceBundle jpoResources) static void
setLastCameraWizardCopyMode
(boolean lastCameraWizardCopyMode) static void
setLastMainFrameCoordinates
(Rectangle mainFrameCoordinates) Remembers the position and size of the last Main Windowstatic void
setLastSortChoice
(Settings.FieldCodes lastSortChoice) static void
setLastViewerCoordinates
(Rectangle lastViewerCoordinates) Remembers the last saved position and size of the Picture Viewerstatic boolean
Sets the new locale.static void
setLogfile
(File logfile) static void
setMainWindow
(MainWindow newMainWindow) static void
setMaximumPictureSize
(int maximumPictureSize) static void
setMaxThumbnails
(int maxThumbnails) Remembers the maximum number of thumbnails to show on the Thumbnail Panelstatic void
setNewViewerSizeChoice
(int newViewerSizeChoice) Remembers the choice for new Picture Viewer windowsstatic void
setPictureCollection
(PictureCollection pictureCollection) static void
setPictureViewerFastScale
(boolean pictureViewerFastScale) static void
setPreferredLeftDividerSpot
(int preferredLeftDividerSpot) static void
setPreferredMasterDividerSpot
(int preferredMasterDividerSpot) static void
setRememberGoogleCredentials
(boolean rememberGoogleCredentials) static void
setShowFilenamesOnThumbnailPanel
(boolean showFilenamesOnThumbnailPanel) Stores whether filenames should be shown on the Thumbnail panestatic void
setShowThumbOnFileChooser
(boolean showThumbOnFileChooser) static void
setShowTimestampsOnThumbnailPanel
(boolean showTimestampsOnThumbnailPanel) Stores the default choice for fast scalingstatic void
setSnoozeVersionAlertsExpiryDateTime
(LocalDateTime expiryDateTime) Records the expiry DateTime before which the version alerts shall not be shown.static void
setStartupSizeChoice
(int startupSizeChoice) Remembers if the choice for the startup sizestatic void
setTagCloudWords
(int tagCloudWords) static void
setThumbnailFastScale
(boolean thumbnailFastScale) Stores the default choice for fast scalingstatic void
setThumbnailSize
(int thumbnailSize) static void
setUiScale
(double uiScale) static void
setUnsavedSettingChanges
(boolean unsavedSettingChanges) static void
setWriteLog
(boolean writeLog) Sets the writeLog flagstatic void
setWriteRobotsTxt
(boolean writeRobotsTxt) Remembers whether to write a robots.txt filestatic void
This method validates that the copy locations are valid directories and removes those that don't existstatic void
method that validates the settings & brings up the Settings dialog if not okstatic void
Writes the cameras collection to the preferences.static void
This 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 aRecentDropNodesChangedEvent
onto 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
-