public abstract class AbstractApplicationPreferences extends Object implements ApplicationPreferences
Basic implementation of the application preferences. This is an abstract class.
BasicApplicationPreferences| Modifier and Type | Field and Description |
|---|---|
protected Properties |
defaultUserProps |
protected Vector |
listeners |
protected Properties |
props
Preferences store
|
protected char |
separator
Character used to separate the user name and the preference name in the
preference key
|
protected Properties |
userProps |
| Constructor and Description |
|---|
AbstractApplicationPreferences() |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationPreferencesListener(ApplicationPreferencesListener l)
Adds an ApplicationPreferencesListener.
|
protected void |
fireApplicationPreferencesChanged(String user,
String pref,
String value)
Notifies all listeners that have registered interest for notification on
changes in preference values.
|
protected String |
getKeyPreference(String user,
String name)
Gets the key used to search a preference
|
Properties |
getProperties() |
void |
removeApplicationPreferencesListener(ApplicationPreferencesListener l)
Removes an ApplicationPreferencesListener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreference, getRemoteApplicationPreferences, loadPreferences, savePreferences, setPreference, setRemoteApplicationPreferences, showPreferencesDialogprotected Vector listeners
protected Properties props
protected Properties userProps
protected Properties defaultUserProps
protected char separator
public Properties getProperties()
protected String getKeyPreference(String user, String name)
user - Name of the user who searches the preference. This parameter
can be nullname - Preference namepublic void addApplicationPreferencesListener(ApplicationPreferencesListener l)
ApplicationPreferencesaddApplicationPreferencesListener in interface ApplicationPreferencespublic void removeApplicationPreferencesListener(ApplicationPreferencesListener l)
ApplicationPreferencesremoveApplicationPreferencesListener in interface ApplicationPreferencesprotected void fireApplicationPreferencesChanged(String user, String pref, String value)
user - Name of the userpref - Preference namevalue - New preference valueCopyright © 2016 Imatia Innovation S.L.. All rights reserved.