nan.model
Class Settings

java.lang.Object
  extended bynan.model.Settings

public class Settings
extends java.lang.Object

The collective Settings for the application.

Version:
1.13, 1/4/04
Author:
John David Ratliff

Constructor Summary
Settings()
          Creates a new Settings object.
 
Method Summary
 NewsgroupList getAvailableNewsgroups()
          Gets the available newsgroups.
 ServerSettings getServerSettings()
          Gets the ServerSettings.
 NewsgroupList getSubscribedNewsgroups()
          Gets the subscribed newsgroups.
 UserSettings getUserSettings()
          Gets the UserSettings.
 boolean isAvailableNewsgroupsReady()
          Asks if the available newsgroup list is ready.
 boolean loadedServerSettings()
          Asks if ths server settings were loaded.
 boolean loadedUserSettings()
          Asks if the user settings were loaded.
 void reloadSettings()
          Reloads the settings from cache.
 void setWaitDialog(WaitDialog dialog)
          Sets the wait dialog for the available background task.
 java.lang.String toString()
          Returns a String representation of these Settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Settings

public Settings()
Creates a new Settings object.

Method Detail

reloadSettings

public void reloadSettings()
Reloads the settings from cache.


loadedUserSettings

public boolean loadedUserSettings()
Asks if the user settings were loaded.

Returns:
true if the user settings were loaded from cache; false otherwise.

loadedServerSettings

public boolean loadedServerSettings()
Asks if ths server settings were loaded.

Returns:
true if they were loaded; false otherwise.

getUserSettings

public UserSettings getUserSettings()
Gets the UserSettings.

Returns:
The UserSettings.

getServerSettings

public ServerSettings getServerSettings()
Gets the ServerSettings.

Returns:
The ServerSettings.

isAvailableNewsgroupsReady

public boolean isAvailableNewsgroupsReady()
Asks if the available newsgroup list is ready.

Returns:
true if it is ready; false otherwise.

setWaitDialog

public void setWaitDialog(WaitDialog dialog)
Sets the wait dialog for the available background task.

Parameters:
dialog - The WaitDialog sleeper.

getAvailableNewsgroups

public NewsgroupList getAvailableNewsgroups()
Gets the available newsgroups.

Returns:
The available newsgroups.

getSubscribedNewsgroups

public NewsgroupList getSubscribedNewsgroups()
Gets the subscribed newsgroups.

Returns:
The subscribed newsgroups.

toString

public java.lang.String toString()
Returns a String representation of these Settings.

Returns:
A String representation.