FantasySportsModule 0.0.2-dev

org.fanfoot.prefs
Class PreferenceManager

java.lang.Object
  |
  +--org.fanfoot.prefs.PreferenceManager

public class PreferenceManager
extends java.lang.Object

Manages the preferences of the current user.

Author:
rgardler

Field Summary
static java.lang.String AUTO_SCORER_CLASS
          String indicating the AutoScorer class of properties
static java.lang.String AUTO_SCORER_EVENT_CONFIGURATION_FILE_KEY
          Key for AutoScorer EventConfigurationFile path
static java.lang.String AUTO_SCORER_SCORES_CONFIGURATION_FILE_KEY
          Key for AutoScorer Scores configuration XSL path
static java.lang.String AUTO_SCORER_SCORES_TO_HTML_STYLESHEET_KEY
          Key for AutoScorer Scores to HTML XSL path
static java.lang.String CLASS_NAME
          The classname of this class (used by logger)
static java.lang.String CONTROL_CENTRE_CLASS
          Control Centre class name *
static java.lang.String GUI_CONTROL_CENTRE_CLASS
          String indicating the GUI CONTROLCENTRE class of properties
static java.lang.String GUI_CONTROL_CENTRE_DEBUG_KEY
          Key for AutoScorer EventConfigurationFile path
 
Constructor Summary
PreferenceManager()
          Creates a new preferences manager for the version of of the application indicated.
 
Method Summary
 java.lang.String get(java.lang.String strClass, java.lang.String strName)
          Get the value corresponding to the supplied node.
 org.saafe.ui.gui.prefs.PreferencesEditor getEditorDialog(java.lang.String strClass, java.awt.Frame frame)
          Return a graphical editor for the user preferences for the indicated class.
 void set(java.lang.String strClass, java.lang.String strKey, java.lang.String strValue)
          Set the user value corresponding to the supplied key to the supplied value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
The classname of this class (used by logger)

See Also:
Constant Field Values

AUTO_SCORER_CLASS

public static final java.lang.String AUTO_SCORER_CLASS
String indicating the AutoScorer class of properties

See Also:
Constant Field Values

AUTO_SCORER_EVENT_CONFIGURATION_FILE_KEY

public static final java.lang.String AUTO_SCORER_EVENT_CONFIGURATION_FILE_KEY
Key for AutoScorer EventConfigurationFile path

See Also:
Constant Field Values

AUTO_SCORER_SCORES_CONFIGURATION_FILE_KEY

public static final java.lang.String AUTO_SCORER_SCORES_CONFIGURATION_FILE_KEY
Key for AutoScorer Scores configuration XSL path

See Also:
Constant Field Values

AUTO_SCORER_SCORES_TO_HTML_STYLESHEET_KEY

public static final java.lang.String AUTO_SCORER_SCORES_TO_HTML_STYLESHEET_KEY
Key for AutoScorer Scores to HTML XSL path

See Also:
Constant Field Values

CONTROL_CENTRE_CLASS

public static final java.lang.String CONTROL_CENTRE_CLASS
Control Centre class name *

See Also:
Constant Field Values

GUI_CONTROL_CENTRE_CLASS

public static final java.lang.String GUI_CONTROL_CENTRE_CLASS
String indicating the GUI CONTROLCENTRE class of properties

See Also:
Constant Field Values

GUI_CONTROL_CENTRE_DEBUG_KEY

public static final java.lang.String GUI_CONTROL_CENTRE_DEBUG_KEY
Key for AutoScorer EventConfigurationFile path

See Also:
Constant Field Values
Constructor Detail

PreferenceManager

public PreferenceManager()
Creates a new preferences manager for the version of of the application indicated.

Method Detail

get

public java.lang.String get(java.lang.String strClass,
                            java.lang.String strName)
Get the value corresponding to the supplied node.

Parameters:
strClass - the name of the class of preference
strName - the name of the preference requried
Returns:
Description of the Return Value

set

public void set(java.lang.String strClass,
                java.lang.String strKey,
                java.lang.String strValue)
Set the user value corresponding to the supplied key to the supplied value.

Parameters:
strClass - the class of the preferences we are setting
strKey - Key of the preference to set
strValue - the value of the preference

getEditorDialog

public org.saafe.ui.gui.prefs.PreferencesEditor getEditorDialog(java.lang.String strClass,
                                                                java.awt.Frame frame)
Return a graphical editor for the user preferences for the indicated class.

Parameters:
strClass - the class of prefeserence we wish to edit
frame - the parent frame for the dialog
Returns:
The editorDialog value

FantasySportsModule 0.0.2-dev

Copyright © 2003 We know What you Want.net. All Rights Reserved.