|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkawigi.properties.AbstractPrefs
kawigi.properties.StandAlonePrefs
public class StandAlonePrefs
Preferences implementation for standalone, which uses Java's Properties class to store, load, and save preferences See the notes in the AbstractPrefs class for sematics of how this works.
| Constructor Summary | |
|---|---|
StandAlonePrefs(java.io.File prefsFile)
Constructs a new StandAlonePrefs object which reads preferences from the given file if possible. |
|
| Method Summary | |
|---|---|
void |
commit()
Saves the properties in Java's XML Properties format. |
java.lang.String |
getProperty(java.lang.String property)
Returns the string value of the given property. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a property to the given string value. |
| Methods inherited from class kawigi.properties.AbstractPrefs |
|---|
getBoolean, getBoolean, getColor, getColor, getDouble, getDouble, getFont, getFont, getInt, getInt, getProperty, getWorkingDirectory, setBoolean, setColor, setDouble, setFont, setInt, setWorkingDirectory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandAlonePrefs(java.io.File prefsFile)
| Method Detail |
|---|
public java.lang.String getProperty(java.lang.String property)
public void setProperty(java.lang.String property,
java.lang.String value)
public void commit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||