net.sourceforge.pavlov.main.standalone
Class ResourceBroker

java.lang.Object
  extended by net.sourceforge.pavlov.main.standalone.ResourceBroker

public class ResourceBroker
extends Object


Field Summary
static String ABOUT_IMAGE
           
static String BOOK_NULL
           
static String CHAPTER_NULL
           
static String CORRECT
           
static String FEEDBACK_PLUGLET_DIRECTORY
           
static String HARDCOPY_ERROR
           
static String HELPSET_URL
           
static String INCORRECT
           
static String INCORRECT_TITLE
           
static String LIBRARY_DIR
           
static String LIBRARY_ERROR
           
static String LIBRARY_NULL
           
static String LOGIN_ERROR
           
static String PAVLOV_ANSWERS
           
static String PAVLOV_CORRECT
           
static String PAVLOV_INCORRECT
           
static String PAVLOV_LOGIN
           
static String PAVLOV_QUESTIONS
           
static String PAVLOV_QUIZ
           
static String PAVLOV_QUIZZES
           
static String PAVLOV_SCORE
           
static String QUIT
           
static String QUIZVIEW_ERROR_CREATE
           
static String SKINS_DEFAULT_DIR
           
static String SKINS_ERROR_DEFAULT
           
static String STATUS_CLOSING_SPLASH_SCREEN
           
static String STATUS_CONFIGURING_THEMES
           
static String STATUS_CONFIGURING_UI
           
static String STATUS_CREATING_LIBRARY_VIEW
           
static String STATUS_LOADING_LIBRARY
           
static String STATUS_LOADING_PLUGLETS
           
static String STATUS_LOGGING_IN
           
static String STATUS_VALIDATING_STATISTICS
           
static String STRATEGY_PLUGLET_DIRECTORY
           
static String THEMES_DEFAULT_DIR
           
static String TITLE
           
static String TOOL_PLUGLET_DIRECTORY
           
static String USER_NULL
           
static String USER_SAVING_ERROR
           
static String VELOCITY_PLUGLET_DIRECTORY
           
 
Method Summary
 File getFile(String key)
           
static ResourceBroker getInstance()
           
 String getString(String key)
           
 String getString(String key, String def)
          Returns the named resource value or the given default, if the resource value is unavailable.
 URL getURL(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKINS_DEFAULT_DIR

public static final String SKINS_DEFAULT_DIR
See Also:
Constant Field Values

THEMES_DEFAULT_DIR

public static final String THEMES_DEFAULT_DIR
See Also:
Constant Field Values

ABOUT_IMAGE

public static final String ABOUT_IMAGE
See Also:
Constant Field Values

INCORRECT_TITLE

public static final String INCORRECT_TITLE
See Also:
Constant Field Values

SKINS_ERROR_DEFAULT

public static final String SKINS_ERROR_DEFAULT
See Also:
Constant Field Values

QUIT

public static final String QUIT
See Also:
Constant Field Values

LIBRARY_ERROR

public static final String LIBRARY_ERROR
See Also:
Constant Field Values

USER_NULL

public static final String USER_NULL
See Also:
Constant Field Values

QUIZVIEW_ERROR_CREATE

public static final String QUIZVIEW_ERROR_CREATE
See Also:
Constant Field Values

LOGIN_ERROR

public static final String LOGIN_ERROR
See Also:
Constant Field Values

HARDCOPY_ERROR

public static final String HARDCOPY_ERROR
See Also:
Constant Field Values

HELPSET_URL

public static final String HELPSET_URL
See Also:
Constant Field Values

BOOK_NULL

public static final String BOOK_NULL
See Also:
Constant Field Values

CHAPTER_NULL

public static final String CHAPTER_NULL
See Also:
Constant Field Values

LIBRARY_NULL

public static final String LIBRARY_NULL
See Also:
Constant Field Values

LIBRARY_DIR

public static final String LIBRARY_DIR
See Also:
Constant Field Values

STATUS_LOADING_PLUGLETS

public static final String STATUS_LOADING_PLUGLETS
See Also:
Constant Field Values

STATUS_LOADING_LIBRARY

public static final String STATUS_LOADING_LIBRARY
See Also:
Constant Field Values

STATUS_LOGGING_IN

public static final String STATUS_LOGGING_IN
See Also:
Constant Field Values

STATUS_VALIDATING_STATISTICS

public static final String STATUS_VALIDATING_STATISTICS
See Also:
Constant Field Values

STATUS_CONFIGURING_THEMES

public static final String STATUS_CONFIGURING_THEMES
See Also:
Constant Field Values

STATUS_CONFIGURING_UI

public static final String STATUS_CONFIGURING_UI
See Also:
Constant Field Values

STATUS_CREATING_LIBRARY_VIEW

public static final String STATUS_CREATING_LIBRARY_VIEW
See Also:
Constant Field Values

STATUS_CLOSING_SPLASH_SCREEN

public static final String STATUS_CLOSING_SPLASH_SCREEN
See Also:
Constant Field Values

USER_SAVING_ERROR

public static final String USER_SAVING_ERROR
See Also:
Constant Field Values

FEEDBACK_PLUGLET_DIRECTORY

public static final String FEEDBACK_PLUGLET_DIRECTORY
See Also:
Constant Field Values

VELOCITY_PLUGLET_DIRECTORY

public static final String VELOCITY_PLUGLET_DIRECTORY
See Also:
Constant Field Values

STRATEGY_PLUGLET_DIRECTORY

public static final String STRATEGY_PLUGLET_DIRECTORY
See Also:
Constant Field Values

TOOL_PLUGLET_DIRECTORY

public static final String TOOL_PLUGLET_DIRECTORY
See Also:
Constant Field Values

TITLE

public static final String TITLE
See Also:
Constant Field Values

CORRECT

public static final String CORRECT
See Also:
Constant Field Values

INCORRECT

public static final String INCORRECT
See Also:
Constant Field Values

PAVLOV_CORRECT

public static final String PAVLOV_CORRECT
See Also:
Constant Field Values

PAVLOV_INCORRECT

public static final String PAVLOV_INCORRECT
See Also:
Constant Field Values

PAVLOV_QUESTIONS

public static final String PAVLOV_QUESTIONS
See Also:
Constant Field Values

PAVLOV_ANSWERS

public static final String PAVLOV_ANSWERS
See Also:
Constant Field Values

PAVLOV_QUIZ

public static final String PAVLOV_QUIZ
See Also:
Constant Field Values

PAVLOV_QUIZZES

public static final String PAVLOV_QUIZZES
See Also:
Constant Field Values

PAVLOV_SCORE

public static final String PAVLOV_SCORE
See Also:
Constant Field Values

PAVLOV_LOGIN

public static final String PAVLOV_LOGIN
See Also:
Constant Field Values
Method Detail

getInstance

public static ResourceBroker getInstance()

getString

public String getString(String key)

getString

public String getString(String key,
                        String def)
Returns the named resource value or the given default, if the resource value is unavailable.

Parameters:
key - a String value
def - a String value
Returns:
a String value

getFile

public File getFile(String key)

getURL

public URL getURL(String key)
           throws MalformedURLException
Throws:
MalformedURLException