|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.settings.AbstractSettings
Abstract Settings class that all settings classes should extend. Provides basic functionality for all settings classes.
Constructor Summary | |
protected |
AbstractSettings(java.lang.String fileName,
java.lang.String header)
Basic constructor that creates the FACTORY and PROPS_FILE. |
Method Summary | |
SettingsFactory |
getFactory()
Accessor for the SettingsFactory instance that stores the properties. |
java.util.Properties |
getProperties()
Accessor for the Properties instance that stores all settings. |
java.io.File |
getPropertiesFile()
Accessor for the File instance taht stores all properties |
boolean |
getShouldSave()
Access for shouldSave |
void |
reload()
reload settings from both the property and configuration files |
void |
revertToDefault()
Revert all settings to their default value |
void |
save()
Save property settings to the property file |
void |
setShouldSave(boolean shouldSave)
Mutator for shouldSave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractSettings(java.lang.String fileName, java.lang.String header)
Method Detail |
public java.util.Properties getProperties()
public java.io.File getPropertiesFile()
public SettingsFactory getFactory()
public void reload()
public void save()
public void revertToDefault()
public void setShouldSave(boolean shouldSave)
public boolean getShouldSave()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |