VdexReload 1.1.3 API

uk.ac.reload.editor.prefs
Class ReloadEditorPrefs

java.lang.Object
  extended byuk.ac.reload.dweezil.prefs.UserPrefs
      extended byuk.ac.reload.editor.prefs.ReloadEditorPrefs

public class ReloadEditorPrefs
extends UserPrefs

The User Prefs file. Implementers will have to fulfil the abstract methods


Field Summary
static java.lang.String CP_DEFAULT_PROFILE
           
static java.lang.String CP_HIDE_RESOURCES
           
static java.lang.String CP_HIDE_SCORM
           
static java.lang.String GENERAL_HISTORY
           
static java.lang.String GENERAL_PREFS_DEFAULT_FOLDER
           
static java.lang.String GENERAL_PREFS_LF
           
static java.lang.String MD_DEFAULT_PROFILE
           
static java.lang.String SCORM_DEFAULT_PROFILE
           
static java.lang.String USER_PREFS_ELEMENTNAME
          The Reload Prefs root element name
static java.lang.String USER_PREFS_FILENAME
          The Reload Prefs Filename
static java.lang.String VX_DEFAULT_PROFILE
           
 
Fields inherited from class uk.ac.reload.dweezil.prefs.UserPrefs
_doc
 
Constructor Summary
ReloadEditorPrefs()
           
 
Method Summary
 void addFileToHistory(java.io.File file)
          Add a new entry to the Recent File list, or if already present move to front of list, and limit to 8 entries if need be
 java.lang.String getElementRootName()
           
 java.lang.String[] getFileHistory()
           
static ReloadEditorPrefs getInstance()
           
 java.io.File getPrefsFile()
          Get the Preferences File (for example from, c:/winnt/profiles/user/reload/reload_prefs.xml)
protected  void setDefaultValues()
          Set some default values
 
Methods inherited from class uk.ac.reload.dweezil.prefs.UserPrefs
createNewPrefsFile, getBooleanValue, getValue, load, putBooleanValue, putValue, removeValue, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERAL_PREFS_DEFAULT_FOLDER

public static final java.lang.String GENERAL_PREFS_DEFAULT_FOLDER
See Also:
Constant Field Values

GENERAL_PREFS_LF

public static final java.lang.String GENERAL_PREFS_LF
See Also:
Constant Field Values

GENERAL_HISTORY

public static final java.lang.String GENERAL_HISTORY
See Also:
Constant Field Values

CP_HIDE_RESOURCES

public static final java.lang.String CP_HIDE_RESOURCES
See Also:
Constant Field Values

CP_HIDE_SCORM

public static final java.lang.String CP_HIDE_SCORM
See Also:
Constant Field Values

CP_DEFAULT_PROFILE

public static final java.lang.String CP_DEFAULT_PROFILE
See Also:
Constant Field Values

SCORM_DEFAULT_PROFILE

public static final java.lang.String SCORM_DEFAULT_PROFILE
See Also:
Constant Field Values

MD_DEFAULT_PROFILE

public static final java.lang.String MD_DEFAULT_PROFILE
See Also:
Constant Field Values

VX_DEFAULT_PROFILE

public static final java.lang.String VX_DEFAULT_PROFILE
See Also:
Constant Field Values

USER_PREFS_FILENAME

public static final java.lang.String USER_PREFS_FILENAME
The Reload Prefs Filename

See Also:
Constant Field Values

USER_PREFS_ELEMENTNAME

public static final java.lang.String USER_PREFS_ELEMENTNAME
The Reload Prefs root element name

See Also:
Constant Field Values
Constructor Detail

ReloadEditorPrefs

public ReloadEditorPrefs()
Method Detail

getInstance

public static ReloadEditorPrefs getInstance()
Returns:
the Singleton

setDefaultValues

protected void setDefaultValues()
Set some default values

Specified by:
setDefaultValues in class UserPrefs

getPrefsFile

public java.io.File getPrefsFile()
Description copied from class: UserPrefs
Get the Preferences File (for example from, c:/winnt/profiles/user/reload/reload_prefs.xml)

Specified by:
getPrefsFile in class UserPrefs
Returns:
the Preferences File

getElementRootName

public java.lang.String getElementRootName()
Specified by:
getElementRootName in class UserPrefs
Returns:
the root Element name

getFileHistory

public java.lang.String[] getFileHistory()
Returns:
the Recent File History as an array of Strings

addFileToHistory

public void addFileToHistory(java.io.File file)
Add a new entry to the Recent File list, or if already present move to front of list, and limit to 8 entries if need be


VdexReload 1.1.3 API