|
Ontimize 5.2071EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.gui.preferences.AbstractApplicationPreferences
Basic implementation of the application preferences. This is an abstract class.
BasicApplicationPreferences| Field Summary | |
protected java.util.Properties |
defaultUserProps
|
protected java.util.Vector |
listeners
|
protected java.util.Properties |
props
Preferences store |
protected char |
separator
Character used to separate the user name and the preference name in the preference key |
protected java.util.Properties |
userProps
|
| Constructor Summary | |
AbstractApplicationPreferences()
|
|
| Method Summary | |
void |
addApplicationPreferencesListener(ApplicationPreferencesListener l)
Adds an ApplicationPreferencesListener. |
protected void |
fireApplicationPreferencesChanged(java.lang.String user,
java.lang.String pref,
java.lang.String value)
Notifies all listeners that have registered interest for notification on changes in preference values. |
protected java.lang.String |
getKeyPreference(java.lang.String user,
java.lang.String name)
Gets the key used to search a preference |
java.util.Properties |
getProperties()
|
void |
removeApplicationPreferencesListener(ApplicationPreferencesListener l)
Removes an ApplicationPreferencesListener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ontimize.gui.preferences.ApplicationPreferences |
getPreference, getRemoteApplicationPreferences, loadPreferences, savePreferences, setPreference, setRemoteApplicationPreferences, showPreferencesDialog |
| Field Detail |
protected java.util.Vector listeners
protected java.util.Properties props
protected java.util.Properties userProps
protected java.util.Properties defaultUserProps
protected char separator
| Constructor Detail |
public AbstractApplicationPreferences()
| Method Detail |
public java.util.Properties getProperties()
protected java.lang.String getKeyPreference(java.lang.String user,
java.lang.String name)
user - Name of the user who searches the preference. This parameter can
be nullname - Preference name
public void addApplicationPreferencesListener(ApplicationPreferencesListener l)
ApplicationPreferences
addApplicationPreferencesListener in interface ApplicationPreferencesl - public void removeApplicationPreferencesListener(ApplicationPreferencesListener l)
ApplicationPreferences
removeApplicationPreferencesListener in interface ApplicationPreferencesl -
protected void fireApplicationPreferencesChanged(java.lang.String user,
java.lang.String pref,
java.lang.String value)
user - Name of the userpref - Preference namevalue - New preference value
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||