| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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
IOExceptionprotected String internalGet(String key)
AbstractSettings
internalGet in class AbstractSettingsprotected Settings internalCreateChild(String key)
internalCreateChild in class AbstractSettings
protected void internalSet(String key,
                           String value)
internalSet in class AbstractSettingspublic String[] getKeys()
SettingsSettings.
protected void internalRemove(String key)
internalRemove in class AbstractSettingspublic boolean internalContains(String key)
internalContains in class AbstractSettingsprotected String[] internalGetChildSettings()
AbstractSettings
internalGetChildSettings in class AbstractSettingsprotected void internalRemoveSettings()
internalRemoveSettings in class AbstractSettings| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||