|
||||||||||
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
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 Settings
protected abstract boolean internalContains(String key)
protected abstract String[] internalGetChildSettings()
public void setString(String key, String value)
setString
in interface Settings
protected abstract Settings internalCreateChild(String key)
public String[] getChildSettings()
getChildSettings
in interface Settings
public 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 Settings
public String getDefaultString(String key)
getDefaultString
in interface Settings
public void setInt(String key, int value)
setInt
in interface Settings
public int getInt(String key)
getInt
in interface Settings
public void setDefaultInt(String key, int value)
setDefaultInt
in interface Settings
public int getDefaultInt(String key)
getDefaultInt
in interface Settings
public void setDefaultLong(String key, long value)
setDefaultLong
in interface Settings
public long getDefaultLong(String key)
getDefaultLong
in interface Settings
public void setFloat(String key, float value)
setFloat
in interface Settings
public float getFloat(String key)
getFloat
in interface Settings
public void setDefaultFloat(String key, float value)
setDefaultFloat
in interface Settings
public float getDefaultFloat(String key)
getDefaultFloat
in interface Settings
public void setDouble(String key, double value)
setDouble
in interface Settings
public double getDouble(String key)
getDouble
in interface Settings
public void setDefaultDouble(String key, double value)
setDefaultDouble
in interface Settings
public double getDefaultDouble(String key)
getDefaultDouble
in interface Settings
public void setBoolean(String key, boolean value)
setBoolean
in interface Settings
public boolean getBoolean(String key)
getBoolean
in interface Settings
public void setDefaultBoolean(String key, boolean value)
setDefaultBoolean
in interface Settings
public boolean getDefaultBoolean(String key)
getDefaultBoolean
in interface Settings
public void setLabeledEnum(String key, LabeledEnum value)
setLabeledEnum
in interface Settings
public LabeledEnum getLabeledEnum(String key)
getLabeledEnum
in interface Settings
public void setDefaultLabeledEnum(String key, LabeledEnum value)
setDefaultLabeledEnum
in interface Settings
public LabeledEnum getDefaultLabeledEnum(String key)
getDefaultLabeledEnum
in interface Settings
public boolean isDefault(String key)
isDefault
in interface Settings
public String[] getDefaultKeys()
Settings
Settings
.
getDefaultKeys
in interface Settings
public String[] getAllKeys()
Settings
getAllKeys
in interface Settings
public String getName()
getName
in interface Settings
public Settings getParent()
getParent
in interface Settings
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface Settings
public void addPropertyChangeListener(String key, PropertyChangeListener l)
addPropertyChangeListener
in interface Settings
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface Settings
public void removePropertyChangeListener(String key, PropertyChangeListener l)
removePropertyChangeListener
in interface Settings
protected abstract void internalRemove(String key)
public void remove(String key)
remove
in interface Settings
public void setLong(String key, long value)
setLong
in interface Settings
public long getLong(String key)
getLong
in interface Settings
public boolean isRoot()
isRoot
in interface Settings
public void removeSettings()
Settings
Settings
from the backing store.
removeSettings
in interface Settings
protected abstract void internalRemoveSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |