|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.dweezil.prefs.UserPrefs
The User Prefs file. Implementers will have to fulfil the abstract methods
Field Summary | |
protected org.jdom.Document |
_doc
The JDOM Document |
Constructor Summary | |
UserPrefs()
Default constructor |
Method Summary | |
protected org.jdom.Document |
createNewPrefsFile()
Create a new JDOM Prefs Document with root element |
boolean |
getBooleanValue(java.lang.String key)
Get a boolean value given a key, if it doesn't exist the default is false. |
abstract java.lang.String |
getElementRootName()
|
abstract java.io.File |
getPrefsFile()
Get the Preferences File (for example from, c:/winnt/profiles/user/reload/reload_prefs.xml) |
java.lang.String |
getValue(java.lang.String key)
Get a value string given a key |
protected org.jdom.Document |
load()
Load the Preferences File |
void |
putBooleanValue(java.lang.String key,
boolean value)
Add a Boolean value |
void |
putValue(java.lang.String key,
java.lang.String value)
Put a key and value |
void |
removeValue(java.lang.String key)
Remove a value |
void |
save()
Save the Prefs file |
protected abstract void |
setDefaultValues()
Set some default values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.jdom.Document _doc
Constructor Detail |
public UserPrefs()
Method Detail |
protected org.jdom.Document load()
public void save() throws DweezilXMLException
DweezilXMLException
protected org.jdom.Document createNewPrefsFile()
public java.lang.String getValue(java.lang.String key)
key
- the search key concerned
public boolean getBooleanValue(java.lang.String key)
key
- the search key concerned
public void putBooleanValue(java.lang.String key, boolean value)
key
- the search key concerned
value the boolean value to assign for this keypublic void putValue(java.lang.String key, java.lang.String value)
key
- the search key concerned
value the value to assign for this keypublic void removeValue(java.lang.String key)
key
- the search key to be removedpublic abstract java.io.File getPrefsFile()
protected abstract void setDefaultValues()
public abstract java.lang.String getElementRootName()
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |