| java.lang.Object net.refractions.udig.catalog.RemotePreferenceStore
RemotePreferenceStore | abstract public class RemotePreferenceStore implements IPersistentPreferenceStore(Code) | | An abstract preference store implementation for remote preference stores. This class is quite
similar to org.eclipse.jface.preference.PreferenceStore , with the exception that
it loads and saves its values from a remote source on startup and shutdown, respectively.
author: chorner |
Method Summary | |
public void | addPropertyChangeListener(IPropertyChangeListener listener) | public boolean | contains(String name) | public void | firePropertyChangeEvent(String name, Object oldValue, Object newValue) | public boolean | getBoolean(String name) | public boolean | getDefaultBoolean(String name) | public double | getDefaultDouble(String name) | public float | getDefaultFloat(String name) | public int | getDefaultInt(String name) | public long | getDefaultLong(String name) | public String | getDefaultString(String name) | public double | getDouble(String name) | public float | getFloat(String name) | public int | getInt(String name) | public long | getLong(String name) | public String | getString(String name) | abstract protected String | getValue(String name) Obtains the remote value for the specified preference. | public boolean | isDefault(String name) | abstract public boolean | isKey(String name) Determines if the key specified exists in the remote store. | protected void | load() This is the initial hit of the remote store. | public boolean | needsSaving() | public String[] | preferenceNames() Returns an enumeration of all preferences known to this store which have
current values other than their default value. | abstract public void | putValue(String name, String value) Stores a remote value for the preference with the specified key. | public void | removePropertyChangeListener(IPropertyChangeListener listener) | public void | save() | public void | setDefault(String name, double value) | public void | setDefault(String name, float value) | public void | setDefault(String name, int value) | public void | setDefault(String name, long value) | public void | setDefault(String name, String value) | public void | setDefault(String name, boolean value) | public void | setToDefault(String name) | public void | setValue(String name, double value) | public void | setValue(String name, float value) | public void | setValue(String name, int value) | public void | setValue(String name, long value) | public void | setValue(String name, String value) | public void | setValue(String name, boolean value) |
RemotePreferenceStore | public RemotePreferenceStore()(Code) | | |
addPropertyChangeListener | public void addPropertyChangeListener(IPropertyChangeListener listener)(Code) | | |
getDefaultBoolean | public boolean getDefaultBoolean(String name)(Code) | | |
getDefaultDouble | public double getDefaultDouble(String name)(Code) | | |
getDefaultFloat | public float getDefaultFloat(String name)(Code) | | |
getValue | abstract protected String getValue(String name)(Code) | | Obtains the remote value for the specified preference. Subclasses must implement.
Parameters: name - key String value |
isKey | abstract public boolean isKey(String name)(Code) | | Determines if the key specified exists in the remote store.
Parameters: name - key of the preference true if key exists |
load | protected void load()(Code) | | This is the initial hit of the remote store. All methods that read or write will check to
ensure we've interacted with the store prior to doing anything.
|
needsSaving | public boolean needsSaving()(Code) | | |
preferenceNames | public String[] preferenceNames()(Code) | | Returns an enumeration of all preferences known to this store which have
current values other than their default value.
an array of preference names |
putValue | abstract public void putValue(String name, String value)(Code) | | Stores a remote value for the preference with the specified key. Subclasses must implement.
|
removePropertyChangeListener | public void removePropertyChangeListener(IPropertyChangeListener listener)(Code) | | |
setDefault | public void setDefault(String name, double value)(Code) | | |
setDefault | public void setDefault(String name, float value)(Code) | | |
setDefault | public void setDefault(String name, int value)(Code) | | |
setDefault | public void setDefault(String name, long value)(Code) | | |
setDefault | public void setDefault(String name, boolean value)(Code) | | |
setValue | public void setValue(String name, double value)(Code) | | |
setValue | public void setValue(String name, float value)(Code) | | |
setValue | public void setValue(String name, boolean value)(Code) | | |
|
|