|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.settings.AbstractSettings
public abstract class AbstractSettings
Abstract Settings implementation.
| Constructor Summary | |
|---|---|
AbstractSettings(Settings parent,
String name)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyChangeListener(String key,
PropertyChangeListener l)
|
boolean |
contains(String key)
|
String[] |
getAllKeys()
Returns the "sum" of {link #getKeys()} and {link #getDefaultKeys()}. |
boolean |
getBoolean(String key)
|
String[] |
getChildSettings()
|
boolean |
getDefaultBoolean(String key)
|
double |
getDefaultDouble(String key)
|
float |
getDefaultFloat(String key)
|
int |
getDefaultInt(String key)
|
String[] |
getDefaultKeys()
Returns the registered default keys in this Settings. |
LabeledEnum |
getDefaultLabeledEnum(String key)
|
long |
getDefaultLong(String key)
|
String |
getDefaultString(String key)
|
double |
getDouble(String key)
|
float |
getFloat(String key)
|
int |
getInt(String key)
|
LabeledEnum |
getLabeledEnum(String key)
|
long |
getLong(String key)
|
String |
getName()
|
Settings |
getParent()
|
Settings |
getSettings(String name)
|
String |
getString(String key)
|
protected abstract boolean |
internalContains(String key)
|
protected abstract Settings |
internalCreateChild(String key)
|
protected abstract String |
internalGet(String key)
Return null if no value found for key |
protected abstract String[] |
internalGetChildSettings()
Should return the names of the child settings initially in this settings instance, i.e. |
protected abstract void |
internalRemove(String key)
|
protected abstract void |
internalRemoveSettings()
|
protected abstract void |
internalSet(String key,
String value)
|
boolean |
isDefault(String key)
|
boolean |
isRoot()
|
void |
remove(String key)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
removePropertyChangeListener(String key,
PropertyChangeListener l)
|
void |
removeSettings()
Removes this Settings from the backing store. |
void |
setBoolean(String key,
boolean value)
|
void |
setDefaultBoolean(String key,
boolean value)
|
void |
setDefaultDouble(String key,
double value)
|
void |
setDefaultFloat(String key,
float value)
|
void |
setDefaultInt(String key,
int value)
|
void |
setDefaultLabeledEnum(String key,
LabeledEnum value)
|
void |
setDefaultLong(String key,
long value)
|
void |
setDefaultString(String key,
String value)
|
void |
setDouble(String key,
double value)
|
void |
setFloat(String key,
float value)
|
void |
setInt(String key,
int value)
|
void |
setLabeledEnum(String key,
LabeledEnum value)
|
void |
setLong(String key,
long value)
|
void |
setString(String key,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.richclient.settings.Settings |
|---|
getKeys, load, save |
| Constructor Detail |
|---|
public AbstractSettings(Settings parent,
String name)
| Method Detail |
|---|
public boolean contains(String key)
contains in interface Settingsprotected abstract boolean internalContains(String key)
protected abstract String[] internalGetChildSettings()
public void setString(String key,
String value)
setString in interface Settingsprotected abstract Settings internalCreateChild(String key)
public String[] getChildSettings()
getChildSettings in interface Settingspublic Settings getSettings(String name)
getSettings in interface Settings
protected abstract void internalSet(String key,
String value)
protected abstract String internalGet(String key)
public String getString(String key)
getString in interface Settings
public void setDefaultString(String key,
String value)
setDefaultString in interface Settingspublic String getDefaultString(String key)
getDefaultString in interface Settings
public void setInt(String key,
int value)
setInt in interface Settingspublic int getInt(String key)
getInt in interface Settings
public void setDefaultInt(String key,
int value)
setDefaultInt in interface Settingspublic int getDefaultInt(String key)
getDefaultInt in interface Settings
public void setDefaultLong(String key,
long value)
setDefaultLong in interface Settingspublic long getDefaultLong(String key)
getDefaultLong in interface Settings
public void setFloat(String key,
float value)
setFloat in interface Settingspublic float getFloat(String key)
getFloat in interface Settings
public void setDefaultFloat(String key,
float value)
setDefaultFloat in interface Settingspublic float getDefaultFloat(String key)
getDefaultFloat in interface Settings
public void setDouble(String key,
double value)
setDouble in interface Settingspublic double getDouble(String key)
getDouble in interface Settings
public void setDefaultDouble(String key,
double value)
setDefaultDouble in interface Settingspublic double getDefaultDouble(String key)
getDefaultDouble in interface Settings
public void setBoolean(String key,
boolean value)
setBoolean in interface Settingspublic boolean getBoolean(String key)
getBoolean in interface Settings
public void setDefaultBoolean(String key,
boolean value)
setDefaultBoolean in interface Settingspublic boolean getDefaultBoolean(String key)
getDefaultBoolean in interface Settings
public void setLabeledEnum(String key,
LabeledEnum value)
setLabeledEnum in interface Settingspublic LabeledEnum getLabeledEnum(String key)
getLabeledEnum in interface Settings
public void setDefaultLabeledEnum(String key,
LabeledEnum value)
setDefaultLabeledEnum in interface Settingspublic LabeledEnum getDefaultLabeledEnum(String key)
getDefaultLabeledEnum in interface Settingspublic boolean isDefault(String key)
isDefault in interface Settingspublic String[] getDefaultKeys()
SettingsSettings.
getDefaultKeys in interface Settingspublic String[] getAllKeys()
Settings
getAllKeys in interface Settingspublic String getName()
getName in interface Settingspublic Settings getParent()
getParent in interface Settingspublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface Settings
public void addPropertyChangeListener(String key,
PropertyChangeListener l)
addPropertyChangeListener in interface Settingspublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface Settings
public void removePropertyChangeListener(String key,
PropertyChangeListener l)
removePropertyChangeListener in interface Settingsprotected abstract void internalRemove(String key)
public void remove(String key)
remove in interface Settings
public void setLong(String key,
long value)
setLong in interface Settingspublic long getLong(String key)
getLong in interface Settingspublic boolean isRoot()
isRoot in interface Settingspublic void removeSettings()
SettingsSettings from the backing store.
removeSettings in interface Settingsprotected abstract void internalRemoveSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||