kawigi.properties
Class TCPrefs
java.lang.Object
kawigi.properties.AbstractPrefs
kawigi.properties.TCPrefs
- All Implemented Interfaces:
- PrefProxy
public class TCPrefs
- extends AbstractPrefs
Preferences implementation for plugin mode, where the preference values are
stored in TopCoder's LocalPreferences.
These preferences are stored along with settings for the TopCoder contest
applet in a text file called "contestapplet.conf", which by default in
Windows XP is stored at C:\Documents and Settings\\, or in most
non-Microsoft platforms is stored in the home directory.
See the notes in the AbstractPrefs class for sematics of how this works.
|
Constructor Summary |
TCPrefs()
Constructs a TCPrefs object and gets TopCoder's preferences. |
|
Method Summary |
void |
commit()
Tells the TopCoder applet to save its preferences. |
java.lang.String |
getProperty(java.lang.String property)
Gets the value of a property as a String. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets the value of a property to a 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 |
TCPrefs
public TCPrefs()
- Constructs a TCPrefs object and gets TopCoder's preferences.
getProperty
public java.lang.String getProperty(java.lang.String property)
- Gets the value of a property as a String.
setProperty
public void setProperty(java.lang.String property,
java.lang.String value)
- Sets the value of a property to a String value.
commit
public void commit()
- Tells the TopCoder applet to save its preferences.