|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.settings.AbstractSettings
org.springframework.richclient.settings.j2seprefs.PreferencesSettings
public class PreferencesSettings
Settings implementation using the J2SE Preferences API.
Not using the PreferenceChangeListener to implement PropertyChangeListener
support, because we also need the old value.
Constructor Summary | |
---|---|
PreferencesSettings(Preferences preferences)
|
|
PreferencesSettings(PreferencesSettings parent,
String name)
Create a child with the given name. |
|
PreferencesSettings(String name)
Create the root. |
Method Summary | |
---|---|
String[] |
getKeys()
Returns the keys in this Settings . |
Preferences |
getPreferences()
|
boolean |
internalContains(String key)
|
protected Settings |
internalCreateChild(String key)
|
protected String |
internalGet(String key)
Return null if no value found for key |
protected String[] |
internalGetChildSettings()
Should return the names of the child settings initially in this settings instance, i.e. |
protected void |
internalRemove(String key)
|
protected void |
internalRemoveSettings()
|
protected void |
internalSet(String key,
String value)
|
void |
load()
|
void |
save()
|
Methods inherited from class org.springframework.richclient.settings.AbstractSettings |
---|
addPropertyChangeListener, addPropertyChangeListener, contains, getAllKeys, getBoolean, getChildSettings, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultKeys, getDefaultLabeledEnum, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLabeledEnum, getLong, getName, getParent, getSettings, getString, isDefault, isRoot, remove, removePropertyChangeListener, removePropertyChangeListener, removeSettings, setBoolean, setDefaultBoolean, setDefaultDouble, setDefaultFloat, setDefaultInt, setDefaultLabeledEnum, setDefaultLong, setDefaultString, setDouble, setFloat, setInt, setLabeledEnum, setLong, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferencesSettings(String name)
public PreferencesSettings(PreferencesSettings parent, String name)
public PreferencesSettings(Preferences preferences)
preferences
- Method Detail |
---|
public Preferences getPreferences()
public void save() throws IOException
IOException
public void load() throws IOException
IOException
protected String internalGet(String key)
AbstractSettings
internalGet
in class AbstractSettings
protected Settings internalCreateChild(String key)
internalCreateChild
in class AbstractSettings
protected void internalSet(String key, String value)
internalSet
in class AbstractSettings
public String[] getKeys()
Settings
Settings
.
protected void internalRemove(String key)
internalRemove
in class AbstractSettings
public boolean internalContains(String key)
internalContains
in class AbstractSettings
protected String[] internalGetChildSettings()
AbstractSettings
internalGetChildSettings
in class AbstractSettings
protected void internalRemoveSettings()
internalRemoveSettings
in class AbstractSettings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |