kawigi.properties
Class StandAlonePrefs

java.lang.Object
  extended by kawigi.properties.AbstractPrefs
      extended by kawigi.properties.StandAlonePrefs
All Implemented Interfaces:
PrefProxy

public class StandAlonePrefs
extends AbstractPrefs

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

StandAlonePrefs

public StandAlonePrefs(java.io.File prefsFile)
Constructs a new StandAlonePrefs object which reads preferences from the given file if possible.

Method Detail

getProperty

public java.lang.String getProperty(java.lang.String property)
Returns the string value of the given property.


setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
Sets a property to the given string value.


commit

public void commit()
Saves the properties in Java's XML Properties format.