org.xnap.util
Class Preferences

java.lang.Object
  extended by org.xnap.util.AbstractPreferences
      extended by org.xnap.util.Preferences
All Implemented Interfaces:
PreferencesProvider, TablePreferencesProvider

public class Preferences
extends AbstractPreferences
implements PreferencesProvider, TablePreferencesProvider

Provides access to the global settings.

This class makes use of the singleton pattern.

If you hack around, make sure all pathes are returned with a trailing file separator and all values are initialized to something other than null.

Most important, keep all preferences sorted alphabetically everywhere.


Field Summary
static java.lang.String DEFAULT_THEME
           
static int PREFS_VERSION
          The current version of the preferences file.
static java.lang.String XNAP1_FILENAME
          The name of the references file that was used by XNap 1.x.
static java.lang.String XNAP2_FILENAME
          The name of the references file that was used by XNap 2.x.
static java.lang.String XNAP3_FILENAME
          The name of the current preferences file.
 
Fields inherited from class org.xnap.util.AbstractPreferences
ARRAY_SEPARATOR, changedFlag, logger, namespace, oldVersion, prefsFile, propertyChange, props, version
 
Method Summary
 void addTableListener(java.lang.String table, java.beans.PropertyChangeListener l)
          Add a listener for a table preferences.
 void convert(int oldVersion)
          Converts preferences from oldVersion.
 void defaults()
          Sets the defaults.
 boolean getAlwaysAutoDownload()
           
 boolean getAppendServerNameToChatUser()
           
 boolean getAutoClearTransfers()
           
 int getAutoClearTransfersInterval()
           
 boolean getAutoComplete()
           
 int getAutoDownloadMaxSearches()
           
 int getAutoDownloadSearchInterval()
           
 boolean getAutoVersionCheck()
           
 boolean getBeepOnChatMessage()
           
 boolean getBlinkOnChannelJoin()
           
 boolean getBuildSearchTreeOnStartup()
           
 boolean getCaptureLauncherOutput()
           
 java.lang.String getChatAwayMessage()
           
 int getChatGlobalVerticalDividerLocation()
           
 java.lang.String getChatIgnoreMessage()
           
 int getChatVerticalDividerLocation()
           
 int getCorrectivePixels()
           
 java.lang.String getDebugLogFile()
           
 java.lang.String getDefaultCompletionMode()
           
 java.lang.String getDefaultLookAndFeel()
          Returns the default look and feel.
 java.lang.String getDefaultViewer(java.lang.String extension)
           
 boolean getDelIncompleteFiles()
           
 java.lang.String getDownloadDir()
           
 int getDownloadMaxTries()
           
 int getDownloadRetryInterval()
           
 int getDownloadThrottle()
           
 java.lang.String getEmail()
           
 java.lang.String[] getEnabledPlugins()
           
 java.lang.String getFaqURL()
           
 java.lang.String getFeedbackEmail()
           
 java.lang.String getFeedbackName()
           
 java.lang.String getFeeedbackURL()
           
 java.lang.String getFileLauncherCmd()
           
 java.lang.String getFileLauncherType()
           
 boolean getFilterResults()
           
 boolean getFocusOnAllEvents()
           
 int getHelpDialogHeight()
           
 int getHelpDialogWidth()
           
 int getHotlistDividerLocation()
           
 java.lang.String getHttpProxyHost()
           
 int getHttpProxyPort()
           
 java.lang.String getIconTheme()
           
 java.lang.String getIncompleteDir()
           
static Preferences getInstance()
          Returns the preferences.
 java.lang.String[] getJarIncludePath()
           
 java.lang.String getLanguage()
           
 java.lang.String getLastLaunchVersion()
           
 long getLastUpdateCheck()
           
 java.lang.String[] getLibraryDirs()
           
 int getLibraryHorizontalDividerLocation()
           
 java.lang.String getLibraryTreeNodes()
           
 java.lang.String[] getLibraryTreeNodesArray()
           
 int getLibraryVerticalDividerLocation()
           
 boolean getLimitDownloadAttempts()
           
 boolean getLimitDownloads()
           
 boolean getLimitDownloadsPerUser()
           
 boolean getLimitUploads()
           
 boolean getLimitUploadsPerUser()
           
 int getLinkSpeed()
           
 boolean getLogTransfersToFile()
           
 java.lang.String getLookAndFeel()
           
 int getMaxConsoleLines()
           
 int getMaxDownloads()
           
 int getMaxDownloadsPerUser()
           
 int getMaxOpenWithCommands()
           
 int getMaxSwarmedConnects()
           
 int getMaxUploads()
           
 int getMaxUploadsPerUser()
           
 java.lang.String getMediaTypeDownloadDir(java.lang.String type)
           
 int getMinimumShares()
           
 java.lang.String getMinimumSharesMessage()
           
 java.lang.String[] getOpenWithCommands()
           
 java.lang.String getPassword()
           
 java.lang.String getPlayerCommand()
           
 java.lang.String getPlayerType()
           
 int getPrefsWindowHeight()
           
 int getPrefsWindowWidth()
           
 boolean getPrintServerNotificationsInChatWindow()
           
 java.lang.String getProblemReportURL()
           
 boolean getRememberFeedback()
           
 boolean getRemoveDuplicateResults()
           
 int getSearchBitrate()
           
 int getSearchCompare()
           
 int getSearchDividerLocation()
           
 int getSearchHistorySize()
           
 int getSearchMediaType()
           
 java.lang.String getSearchResultOpenAction()
           
 boolean getSeenStartupWizard()
           
 boolean getSendChatAwayMessage()
           
 boolean getSendChatIgnoreMessage()
           
 boolean getSendMinimumSharesMessage()
           
 boolean getShareFullPath()
           
 javax.swing.KeyStroke getShortcut(java.lang.String key)
           
 boolean getShowChatMsgTime()
           
 boolean getShowDialog(java.lang.String dialogName)
          Deprecated.  
 boolean getShowIcons()
           
 boolean getShowSearchOptions()
           
 boolean getShowSplash()
           
 boolean getShowToolTips()
           
 java.lang.String getSocksProxyHost()
           
 int getSocksProxyPort()
           
 java.lang.String[] getTableColumns(java.lang.String table)
          Returns an array of visible columns as an array of column keys.
 int[] getTableColumnWidths(java.lang.String table)
           
 boolean getTableMaintainSortOrder(java.lang.String table)
           
 int getTableSortedColumn(java.lang.String table)
          Returns 0, if no column is sorted, otherwise the model index of the column + 1.
 java.lang.String getTheme()
           
 boolean getThrottleDownloads()
           
 boolean getThrottleUploads()
           
 int getTransferDividerLocation()
           
 java.lang.String getTransferLogFile()
           
 boolean getUpdatePluginsOnStartup()
           
 int getUpdaterInterval()
           
 java.lang.String getUpdateURL()
           
 java.lang.String[] getUploadDirs()
           
 int getUploadThrottle()
           
 boolean getUseEmacsKeyBindings()
           
 boolean getUseHttpProxy()
           
 boolean getUseMinimumShares()
           
 java.lang.String getUsername()
           
 boolean getUseSmallTransferIcons()
           
 boolean getUseSocksProxy()
           
 boolean getUseSubMenuForPluginMenus()
           
 boolean getUseTabbedPane()
           
 boolean getUseTabbedTransferPane()
           
 int getWindowHeight()
           
 int getWindowWidth()
           
 int getWindowX()
           
 int getWindowY()
           
 java.lang.String getXNapJarURL()
           
 void read()
          Sets the preferences from the default preferences file.
 void setAlwaysAutoDownload(boolean newValue)
           
 void setAppendServerNameToChatUser(boolean newValue)
           
 void setAutoClearTransfers(boolean newValue)
           
 void setAutoClearTransfersInterval(int newValue)
           
 void setAutoComplete(boolean newValue)
           
 void setAutoDownloadMaxSearches(int newValue)
           
 void setAutoDownloadSearchInterval(int newValue)
           
 void setAutoVersionCheck(boolean newValue)
           
 void setBeepOnChatMessage(boolean newValue)
           
 void setBlinkOnChannelJoin(boolean newValue)
           
 void setBuildSearchTreeOnStartup(boolean newValue)
           
 void setCaptureLauncherOutput(boolean newValue)
           
 void setChatAwayMessage(java.lang.String newValue)
           
 void setChatGlobalVerticalDividerLocation(int newValue)
           
 void setChatIgnoreMessage(java.lang.String newValue)
           
 void setChatVerticalDividerLocation(int newValue)
           
 void setCorrectivePixels(int newValue)
           
 void setDebugLogFile(java.lang.String newValue)
           
 void setDefaultCompletionMode(java.lang.String newValue)
           
 void setDefaultViewer(java.lang.String extension, java.lang.String viewerName)
           
 void setDelIncompleteFiles(boolean newValue)
           
 void setDownloadDir(java.lang.String newValue)
           
 void setDownloadRetryInterval(int newValue)
           
 void setDownloadThrottle(int newValue)
           
 void setEmail(java.lang.String newValue)
           
 void setEnabledPlugins(java.lang.String[] newValue)
           
 void setFeedbackEmail(java.lang.String newValue)
           
 void setFeedbackName(java.lang.String newValue)
           
 void setFileLauncherCmd(java.lang.String newValue)
           
 void setFileLauncherType(java.lang.String newValue)
           
 void setFilterResults(boolean newValue)
           
 void setFocusOnAllEvents(boolean newValue)
           
 void setHelpDialogHeight(int newValue)
           
 void setHelpDialogWidth(int newValue)
           
 void setHotlistDividerLocation(int newValue)
           
 void setHttpProxyHost(java.lang.String newValue)
           
 void setHttpProxyPort(int newValue)
           
 void setIconTheme(java.lang.String newValue)
           
 void setIncompleteDir(java.lang.String newValue)
           
 void setJarIncludePath(java.lang.String[] newValue)
           
 void setLanguage(java.lang.String newValue)
           
 void setLastLaunchVersion(java.lang.String newValue)
           
 void setLastUpdateCheck(long newValue)
           
 void setLibraryDirs(java.lang.String[] newValue)
           
 void setLibraryHorizontalDividerLocation(int newValue)
           
 void setLibraryTreeNodes(java.lang.String newValue)
           
 void setLibraryVerticalDividerLocation(int newValue)
           
 void setLimitDownloadAttempts(boolean newValue)
           
 void setLimitDownloads(boolean newValue)
           
 void setLimitDownloadsPerUser(boolean newValue)
           
 void setLimitUploads(boolean newValue)
           
 void setLimitUploadsPerUser(boolean newValue)
           
 void setLinkSpeed(int newValue)
           
 void setLogTransfersToFile(boolean newValue)
           
 void setLookAndFeel(java.lang.String newValue)
           
 void setMaxConsoleLines(int newValue)
           
 void setMaxDownloads(int newValue)
           
 void setMaxDownloadsPerUser(int newValue)
           
 void setMaxOpenWithCommands(int newValue)
           
 void setMaxUploads(int newValue)
           
 void setMaxUploadsPerUser(int newValue)
           
 void setMediaTypeDownloadDir(java.lang.String type, java.lang.String newValue)
           
 void setMinimumShares(int newValue)
           
 void setMinimumSharesMessage(java.lang.String newValue)
           
 void setOpenWithCommands(java.lang.String[] newValue)
           
 void setPassword(java.lang.String newValue)
           
 void setPlayerCommand(java.lang.String newValue)
           
 void setPlayerType(java.lang.String newValue)
           
 void setPrefsWindowHeight(int newValue)
           
 void setPrefsWindowWidth(int newValue)
           
 void setPrintServerNotificationsInChatWindow(boolean newValue)
           
 void setRemoveDuplicateResults(boolean newValue)
           
 void setSearchBitrate(int newValue)
           
 void setSearchCompare(int newValue)
           
 void setSearchDividerLocation(int newValue)
           
 void setSearchHistorySize(int newValue)
           
 void setSearchMediaType(int newValue)
           
 void setSeenStartupWizard(boolean newValue)
           
 void setSendChatAwayMessage(boolean newValue)
           
 void setSendChatIgnoreMessage(boolean newValue)
           
 void setSendMinimumSharesMessage(boolean newValue)
           
 void setShareFullPath(boolean newValue)
           
 void setShortcut(java.lang.String key, javax.swing.KeyStroke newValue)
           
 void setShowChatMsgTime(boolean newValue)
           
 void setShowDialog(java.lang.String dialogName, boolean newValue)
          Deprecated.  
 void setShowIcons(boolean newValue)
           
 void setShowSearchOptions(boolean newValue)
           
 void setShowSplash(boolean newValue)
           
 void setShowToolTips(boolean newValue)
           
 void setSocksProxyHost(java.lang.String newValue)
           
 void setSocksProxyPort(int newValue)
           
 void setTableColumns(java.lang.String table, java.lang.String[] newValue)
          Sets an array of visible columns as an array of column keys.
 void setTableColumnWidths(java.lang.String table, int[] widths)
           
 void setTableMaintainSortOrder(java.lang.String table, boolean newValue)
           
 void setTableSortedColumn(java.lang.String table, int newValue)
           
 void setTheme(java.lang.String newValue)
           
 void setThrottleDownloads(boolean newValue)
           
 void setThrottleUploads(boolean newValue)
           
 void setTransferDividerLocation(int newValue)
           
 void setTransferLogFile(java.lang.String newValue)
           
 void setUpdatePluginsOnStartup(boolean newValue)
           
 void setUploadDirs(java.lang.String[] newValue)
           
 void setUploadThrottle(int newValue)
           
 void setUseEmacsKeyBindings(boolean newValue)
           
 void setUseHttpProxy(boolean newValue)
           
 void setUseMinimumShares(boolean newValue)
           
 void setUsername(java.lang.String newValue)
           
 void setUseSocksProxy(boolean newValue)
           
 void setUseSubMenuForPluginMenus(boolean newValue)
           
 void setUseTabbedPane(boolean newValue)
           
 void setUseTabbedTransferPane(boolean newValue)
           
 void setWindowHeight(int newValue)
           
 void setWindowWidth(int newValue)
           
 void setWindowX(int newValue)
           
 void setWindowY(int newValue)
           
 boolean shouldCheckForUpdate(int days)
           
 
Methods inherited from class org.xnap.util.AbstractPreferences
addPropertyChangeListener, addPropertyChangeListener, areObjectsEqual, areObjectsEqual, firePropertyChange, get, getArray, getBoolean, getColor, getFilename, getFont, getInt, getIntArray, getKeyStroke, getLong, getOldVersion, getProperty, getVersion, read, removeProperty, removePropertyChangeListener, removePropertyChangeListener, renameProperty, set, set, set, set, set, set, set, set, set, setDefault, setDefault, setProperty, setProperty, toString, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XNAP1_FILENAME

public static final java.lang.String XNAP1_FILENAME
The name of the references file that was used by XNap 1.x.

See Also:
Constant Field Values

XNAP2_FILENAME

public static final java.lang.String XNAP2_FILENAME
The name of the references file that was used by XNap 2.x.

See Also:
Constant Field Values

XNAP3_FILENAME

public static final java.lang.String XNAP3_FILENAME
The name of the current preferences file.

See Also:
Constant Field Values

PREFS_VERSION

public static final int PREFS_VERSION
The current version of the preferences file. Increase this, if keys are renamed or removed.

See Also:
Constant Field Values

DEFAULT_THEME

public static final java.lang.String DEFAULT_THEME
See Also:
Constant Field Values
Method Detail

getInstance

public static Preferences getInstance()
Returns the preferences. This should be called at an early stage.


read

public void read()
Sets the preferences from the default preferences file.

Overrides:
read in class AbstractPreferences

convert

public void convert(int oldVersion)
Converts preferences from oldVersion.

Specified by:
convert in class AbstractPreferences

defaults

public void defaults()
Sets the defaults. Preferences that are already set are not overwritten.


addTableListener

public void addTableListener(java.lang.String table,
                             java.beans.PropertyChangeListener l)
Add a listener for a table preferences.

Specified by:
addTableListener in interface TablePreferencesProvider

getAlwaysAutoDownload

public boolean getAlwaysAutoDownload()

setAlwaysAutoDownload

public void setAlwaysAutoDownload(boolean newValue)

getAppendServerNameToChatUser

public boolean getAppendServerNameToChatUser()

setAppendServerNameToChatUser

public void setAppendServerNameToChatUser(boolean newValue)

getAutoClearTransfers

public boolean getAutoClearTransfers()

setAutoClearTransfers

public void setAutoClearTransfers(boolean newValue)

getAutoClearTransfersInterval

public int getAutoClearTransfersInterval()

setAutoClearTransfersInterval

public void setAutoClearTransfersInterval(int newValue)

getAutoComplete

public boolean getAutoComplete()

setAutoComplete

public void setAutoComplete(boolean newValue)

getAutoDownloadMaxSearches

public int getAutoDownloadMaxSearches()

setAutoDownloadMaxSearches

public void setAutoDownloadMaxSearches(int newValue)

getAutoDownloadSearchInterval

public int getAutoDownloadSearchInterval()

setAutoDownloadSearchInterval

public void setAutoDownloadSearchInterval(int newValue)

getAutoVersionCheck

public boolean getAutoVersionCheck()

setAutoVersionCheck

public void setAutoVersionCheck(boolean newValue)

getBeepOnChatMessage

public boolean getBeepOnChatMessage()

setBeepOnChatMessage

public void setBeepOnChatMessage(boolean newValue)

getBlinkOnChannelJoin

public boolean getBlinkOnChannelJoin()

setBlinkOnChannelJoin

public void setBlinkOnChannelJoin(boolean newValue)

getBuildSearchTreeOnStartup

public boolean getBuildSearchTreeOnStartup()

setBuildSearchTreeOnStartup

public void setBuildSearchTreeOnStartup(boolean newValue)

getCaptureLauncherOutput

public boolean getCaptureLauncherOutput()

setCaptureLauncherOutput

public void setCaptureLauncherOutput(boolean newValue)

getChatAwayMessage

public java.lang.String getChatAwayMessage()

setChatAwayMessage

public void setChatAwayMessage(java.lang.String newValue)

getChatIgnoreMessage

public java.lang.String getChatIgnoreMessage()

setChatIgnoreMessage

public void setChatIgnoreMessage(java.lang.String newValue)

getChatGlobalVerticalDividerLocation

public int getChatGlobalVerticalDividerLocation()

setChatGlobalVerticalDividerLocation

public void setChatGlobalVerticalDividerLocation(int newValue)

getChatVerticalDividerLocation

public int getChatVerticalDividerLocation()

setChatVerticalDividerLocation

public void setChatVerticalDividerLocation(int newValue)

getCorrectivePixels

public int getCorrectivePixels()

setCorrectivePixels

public void setCorrectivePixels(int newValue)

getDebugLogFile

public java.lang.String getDebugLogFile()

setDebugLogFile

public void setDebugLogFile(java.lang.String newValue)

getDefaultCompletionMode

public java.lang.String getDefaultCompletionMode()

setDefaultCompletionMode

public void setDefaultCompletionMode(java.lang.String newValue)

getDefaultLookAndFeel

public java.lang.String getDefaultLookAndFeel()
Returns the default look and feel.


getDefaultViewer

public java.lang.String getDefaultViewer(java.lang.String extension)

setDefaultViewer

public void setDefaultViewer(java.lang.String extension,
                             java.lang.String viewerName)

getDelIncompleteFiles

public boolean getDelIncompleteFiles()

setDelIncompleteFiles

public void setDelIncompleteFiles(boolean newValue)

getDownloadDir

public java.lang.String getDownloadDir()

setDownloadDir

public void setDownloadDir(java.lang.String newValue)

getMediaTypeDownloadDir

public java.lang.String getMediaTypeDownloadDir(java.lang.String type)

setMediaTypeDownloadDir

public void setMediaTypeDownloadDir(java.lang.String type,
                                    java.lang.String newValue)

getDownloadMaxTries

public int getDownloadMaxTries()

getDownloadRetryInterval

public int getDownloadRetryInterval()

setDownloadRetryInterval

public void setDownloadRetryInterval(int newValue)

getDownloadThrottle

public int getDownloadThrottle()

setDownloadThrottle

public void setDownloadThrottle(int newValue)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String newValue)

getEnabledPlugins

public java.lang.String[] getEnabledPlugins()

setEnabledPlugins

public void setEnabledPlugins(java.lang.String[] newValue)

getFaqURL

public java.lang.String getFaqURL()

getFeedbackEmail

public java.lang.String getFeedbackEmail()

setFeedbackEmail

public void setFeedbackEmail(java.lang.String newValue)

getFeedbackName

public java.lang.String getFeedbackName()

setFeedbackName

public void setFeedbackName(java.lang.String newValue)

getFeeedbackURL

public java.lang.String getFeeedbackURL()

getFileLauncherCmd

public java.lang.String getFileLauncherCmd()

setFileLauncherCmd

public void setFileLauncherCmd(java.lang.String newValue)

getFileLauncherType

public java.lang.String getFileLauncherType()

setFileLauncherType

public void setFileLauncherType(java.lang.String newValue)

getFilterResults

public boolean getFilterResults()

setFilterResults

public void setFilterResults(boolean newValue)

getFocusOnAllEvents

public boolean getFocusOnAllEvents()

setFocusOnAllEvents

public void setFocusOnAllEvents(boolean newValue)

getHelpDialogHeight

public int getHelpDialogHeight()

setHelpDialogHeight

public void setHelpDialogHeight(int newValue)

getHelpDialogWidth

public int getHelpDialogWidth()

setHelpDialogWidth

public void setHelpDialogWidth(int newValue)

getHotlistDividerLocation

public int getHotlistDividerLocation()

setHotlistDividerLocation

public void setHotlistDividerLocation(int newValue)

getHttpProxyHost

public java.lang.String getHttpProxyHost()

setHttpProxyHost

public void setHttpProxyHost(java.lang.String newValue)

getHttpProxyPort

public int getHttpProxyPort()

setHttpProxyPort

public void setHttpProxyPort(int newValue)

getIconTheme

public java.lang.String getIconTheme()

setIconTheme

public void setIconTheme(java.lang.String newValue)

getIncompleteDir

public java.lang.String getIncompleteDir()

setIncompleteDir

public void setIncompleteDir(java.lang.String newValue)

getJarIncludePath

public java.lang.String[] getJarIncludePath()

setJarIncludePath

public void setJarIncludePath(java.lang.String[] newValue)

getLanguage

public java.lang.String getLanguage()

setLanguage

public void setLanguage(java.lang.String newValue)

getLimitDownloads

public boolean getLimitDownloads()

setLimitDownloads

public void setLimitDownloads(boolean newValue)

getLimitUploads

public boolean getLimitUploads()

setLimitUploads

public void setLimitUploads(boolean newValue)

getLimitDownloadsPerUser

public boolean getLimitDownloadsPerUser()

setLimitDownloadsPerUser

public void setLimitDownloadsPerUser(boolean newValue)

getLimitUploadsPerUser

public boolean getLimitUploadsPerUser()

setLimitUploadsPerUser

public void setLimitUploadsPerUser(boolean newValue)

getLinkSpeed

public int getLinkSpeed()

setLinkSpeed

public void setLinkSpeed(int newValue)

getLogTransfersToFile

public boolean getLogTransfersToFile()

setLogTransfersToFile

public void setLogTransfersToFile(boolean newValue)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String newValue)

getPlayerCommand

public java.lang.String getPlayerCommand()

setPlayerCommand

public void setPlayerCommand(java.lang.String newValue)

getPlayerType

public java.lang.String getPlayerType()

setPlayerType

public void setPlayerType(java.lang.String newValue)

getLastLaunchVersion

public java.lang.String getLastLaunchVersion()

setLastLaunchVersion

public void setLastLaunchVersion(java.lang.String newValue)

getLastUpdateCheck

public long getLastUpdateCheck()

setLastUpdateCheck

public void setLastUpdateCheck(long newValue)

getLibraryDirs

public java.lang.String[] getLibraryDirs()

setLibraryDirs

public void setLibraryDirs(java.lang.String[] newValue)

getLibraryHorizontalDividerLocation

public int getLibraryHorizontalDividerLocation()

setLibraryHorizontalDividerLocation

public void setLibraryHorizontalDividerLocation(int newValue)

getLibraryTreeNodes

public java.lang.String getLibraryTreeNodes()

getLibraryTreeNodesArray

public java.lang.String[] getLibraryTreeNodesArray()

setLibraryTreeNodes

public void setLibraryTreeNodes(java.lang.String newValue)

getLibraryVerticalDividerLocation

public int getLibraryVerticalDividerLocation()

setLibraryVerticalDividerLocation

public void setLibraryVerticalDividerLocation(int newValue)

getLookAndFeel

public java.lang.String getLookAndFeel()

setLookAndFeel

public void setLookAndFeel(java.lang.String newValue)

getSeenStartupWizard

public boolean getSeenStartupWizard()

setSeenStartupWizard

public void setSeenStartupWizard(boolean newValue)

getSendChatAwayMessage

public boolean getSendChatAwayMessage()

setSendChatAwayMessage

public void setSendChatAwayMessage(boolean newValue)

getSendChatIgnoreMessage

public boolean getSendChatIgnoreMessage()

setSendChatIgnoreMessage

public void setSendChatIgnoreMessage(boolean newValue)

getPrintServerNotificationsInChatWindow

public boolean getPrintServerNotificationsInChatWindow()

setPrintServerNotificationsInChatWindow

public void setPrintServerNotificationsInChatWindow(boolean newValue)

getShareFullPath

public boolean getShareFullPath()

setShareFullPath

public void setShareFullPath(boolean newValue)

getShortcut

public javax.swing.KeyStroke getShortcut(java.lang.String key)

setShortcut

public void setShortcut(java.lang.String key,
                        javax.swing.KeyStroke newValue)

shouldCheckForUpdate

public boolean shouldCheckForUpdate(int days)

getShowSearchOptions

public boolean getShowSearchOptions()

setShowSearchOptions

public void setShowSearchOptions(boolean newValue)

getShowChatMsgTime

public boolean getShowChatMsgTime()

setShowChatMsgTime

public void setShowChatMsgTime(boolean newValue)

getShowDialog

public boolean getShowDialog(java.lang.String dialogName)
Deprecated. 


setShowDialog

public void setShowDialog(java.lang.String dialogName,
                          boolean newValue)
Deprecated. 


getShowIcons

public boolean getShowIcons()

setShowIcons

public void setShowIcons(boolean newValue)

getShowSplash

public boolean getShowSplash()

setShowSplash

public void setShowSplash(boolean newValue)

getShowToolTips

public boolean getShowToolTips()

setShowToolTips

public void setShowToolTips(boolean newValue)

getMaxDownloads

public int getMaxDownloads()

setMaxDownloads

public void setMaxDownloads(int newValue)

getMaxDownloadsPerUser

public int getMaxDownloadsPerUser()

setMaxDownloadsPerUser

public void setMaxDownloadsPerUser(int newValue)

getMaxConsoleLines

public int getMaxConsoleLines()

setMaxConsoleLines

public void setMaxConsoleLines(int newValue)

getMaxOpenWithCommands

public int getMaxOpenWithCommands()

setMaxOpenWithCommands

public void setMaxOpenWithCommands(int newValue)

getMaxUploads

public int getMaxUploads()

setMaxUploads

public void setMaxUploads(int newValue)

getMaxUploadsPerUser

public int getMaxUploadsPerUser()

setMaxUploadsPerUser

public void setMaxUploadsPerUser(int newValue)

getMaxSwarmedConnects

public int getMaxSwarmedConnects()

getMinimumShares

public int getMinimumShares()

setMinimumShares

public void setMinimumShares(int newValue)

getMinimumSharesMessage

public java.lang.String getMinimumSharesMessage()

setMinimumSharesMessage

public void setMinimumSharesMessage(java.lang.String newValue)

setLimitDownloadAttempts

public void setLimitDownloadAttempts(boolean newValue)

getLimitDownloadAttempts

public boolean getLimitDownloadAttempts()

getOpenWithCommands

public java.lang.String[] getOpenWithCommands()

setOpenWithCommands

public void setOpenWithCommands(java.lang.String[] newValue)

getPrefsWindowHeight

public int getPrefsWindowHeight()

setPrefsWindowHeight

public void setPrefsWindowHeight(int newValue)

getPrefsWindowWidth

public int getPrefsWindowWidth()

setPrefsWindowWidth

public void setPrefsWindowWidth(int newValue)

getProblemReportURL

public java.lang.String getProblemReportURL()

getRememberFeedback

public boolean getRememberFeedback()

getRemoveDuplicateResults

public boolean getRemoveDuplicateResults()

setRemoveDuplicateResults

public void setRemoveDuplicateResults(boolean newValue)

getSearchBitrate

public int getSearchBitrate()

setSearchBitrate

public void setSearchBitrate(int newValue)

getSearchCompare

public int getSearchCompare()

setSearchCompare

public void setSearchCompare(int newValue)

getSearchDividerLocation

public int getSearchDividerLocation()

setSearchDividerLocation

public void setSearchDividerLocation(int newValue)

getSearchHistorySize

public int getSearchHistorySize()

setSearchHistorySize

public void setSearchHistorySize(int newValue)

getSearchMediaType

public int getSearchMediaType()

setSearchMediaType

public void setSearchMediaType(int newValue)

getSearchResultOpenAction

public java.lang.String getSearchResultOpenAction()

getSendMinimumSharesMessage

public boolean getSendMinimumSharesMessage()

setSendMinimumSharesMessage

public void setSendMinimumSharesMessage(boolean newValue)

getSocksProxyHost

public java.lang.String getSocksProxyHost()

setSocksProxyHost

public void setSocksProxyHost(java.lang.String newValue)

getSocksProxyPort

public int getSocksProxyPort()

setSocksProxyPort

public void setSocksProxyPort(int newValue)

getTheme

public java.lang.String getTheme()

setTheme

public void setTheme(java.lang.String newValue)

getTransferDividerLocation

public int getTransferDividerLocation()

setTransferDividerLocation

public void setTransferDividerLocation(int newValue)

getTransferLogFile

public java.lang.String getTransferLogFile()

setTransferLogFile

public void setTransferLogFile(java.lang.String newValue)

getUpdatePluginsOnStartup

public boolean getUpdatePluginsOnStartup()

setUpdatePluginsOnStartup

public void setUpdatePluginsOnStartup(boolean newValue)

getUpdaterInterval

public int getUpdaterInterval()

getUpdateURL

public java.lang.String getUpdateURL()

getUploadDirs

public java.lang.String[] getUploadDirs()

setUploadDirs

public void setUploadDirs(java.lang.String[] newValue)

getUploadThrottle

public int getUploadThrottle()

setUploadThrottle

public void setUploadThrottle(int newValue)

getUseEmacsKeyBindings

public boolean getUseEmacsKeyBindings()

setUseEmacsKeyBindings

public void setUseEmacsKeyBindings(boolean newValue)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String newValue)

getUseHttpProxy

public boolean getUseHttpProxy()

setUseHttpProxy

public void setUseHttpProxy(boolean newValue)

getUseMinimumShares

public boolean getUseMinimumShares()

setUseMinimumShares

public void setUseMinimumShares(boolean newValue)

getUseSmallTransferIcons

public boolean getUseSmallTransferIcons()

getUseSocksProxy

public boolean getUseSocksProxy()

setUseSocksProxy

public void setUseSocksProxy(boolean newValue)

getUseSubMenuForPluginMenus

public boolean getUseSubMenuForPluginMenus()

setUseSubMenuForPluginMenus

public void setUseSubMenuForPluginMenus(boolean newValue)

getUseTabbedPane

public boolean getUseTabbedPane()

setUseTabbedPane

public void setUseTabbedPane(boolean newValue)

getUseTabbedTransferPane

public boolean getUseTabbedTransferPane()

setUseTabbedTransferPane

public void setUseTabbedTransferPane(boolean newValue)

getTableColumns

public java.lang.String[] getTableColumns(java.lang.String table)
Description copied from interface: TablePreferencesProvider
Returns an array of visible columns as an array of column keys.

Specified by:
getTableColumns in interface TablePreferencesProvider

setTableColumns

public void setTableColumns(java.lang.String table,
                            java.lang.String[] newValue)
Description copied from interface: TablePreferencesProvider
Sets an array of visible columns as an array of column keys.

Specified by:
setTableColumns in interface TablePreferencesProvider

getTableColumnWidths

public int[] getTableColumnWidths(java.lang.String table)
Specified by:
getTableColumnWidths in interface TablePreferencesProvider

setTableColumnWidths

public void setTableColumnWidths(java.lang.String table,
                                 int[] widths)
Specified by:
setTableColumnWidths in interface TablePreferencesProvider

getTableMaintainSortOrder

public boolean getTableMaintainSortOrder(java.lang.String table)
Specified by:
getTableMaintainSortOrder in interface TablePreferencesProvider

setTableMaintainSortOrder

public void setTableMaintainSortOrder(java.lang.String table,
                                      boolean newValue)
Specified by:
setTableMaintainSortOrder in interface TablePreferencesProvider

getTableSortedColumn

public int getTableSortedColumn(java.lang.String table)
Description copied from interface: TablePreferencesProvider
Returns 0, if no column is sorted, otherwise the model index of the column + 1. If the return value is < 0 the column is sorted descending .

Specified by:
getTableSortedColumn in interface TablePreferencesProvider

setTableSortedColumn

public void setTableSortedColumn(java.lang.String table,
                                 int newValue)
Specified by:
setTableSortedColumn in interface TablePreferencesProvider

getThrottleDownloads

public boolean getThrottleDownloads()

setThrottleDownloads

public void setThrottleDownloads(boolean newValue)

getThrottleUploads

public boolean getThrottleUploads()

setThrottleUploads

public void setThrottleUploads(boolean newValue)

getWindowHeight

public int getWindowHeight()

setWindowHeight

public void setWindowHeight(int newValue)

getWindowWidth

public int getWindowWidth()

setWindowWidth

public void setWindowWidth(int newValue)

getWindowX

public int getWindowX()

setWindowX

public void setWindowX(int newValue)

getWindowY

public int getWindowY()

setWindowY

public void setWindowY(int newValue)

getXNapJarURL

public java.lang.String getXNapJarURL()


Copyright © 2001-2005 XNap Team. All Rights Reserved.