public interface Preferences
Modifier and Type | Method and Description |
---|---|
void |
addApplicationPreferenceChangeListener(String applicationId,
PreferenceChangeListener listener)
Registers specified listener to value changes of specified application properties.
|
void |
addGlobalPreferenceChangeListener(PreferenceChangeListener listener)
Registers specified listener to value changes of specified global properties.
|
void |
addUserPreferenceChangeListener(String userId,
PreferenceChangeListener listener)
Registers specified listener to value changes of specified user properties.
|
Set<String> |
getApplicationProperties(String applicationId)
Gets a set of application properties' names
|
Object |
getApplicationPropertyValue(String applicationId,
String name)
Gets the value of a property for a application preference
|
Set<String> |
getGlobalProperties()
Gets a set of global properties' names
|
Object |
getGlobalPropertyValue(String name)
Gets the value of a property for a global preference
|
Set<String> |
getUserProperties(String user)
Gets a set of user properties' names
|
Object |
getUserPropertyValue(String user,
String name)
Gets the value of a property for a user preference
|
void |
removeApplicationPreferenceChangeListener(String applicationId,
PreferenceChangeListener listener)
Unregisters specified listener to value changes of specified application properties.
|
void |
removeGlobalPreferenceChangeListener(PreferenceChangeListener listener)
Unregisters specified listener to value changes of specified global properties.
|
void |
removeUserPreferenceChangeListener(String userId,
PreferenceChangeListener listener)
Unregisters specified listener to value changes of specified user properties.
|
void |
setApplicationPropertyValue(String applicationId,
String name,
Object value)
Sets the value of a property for a application preference
|
void |
setGlobalPropertyValue(String name,
Object value)
Sets the value of a property for a global preference
|
void |
setUserPropertyValue(String user,
String name,
Object value)
Sets the value of a property for a user preference
|
Object getGlobalPropertyValue(String name)
name
- the preference nameObject getUserPropertyValue(String user, String name)
user
- the user namename
- the preference nameObject getApplicationPropertyValue(String applicationId, String name)
applicationId
- the application Idname
- the preference namevoid setGlobalPropertyValue(String name, Object value)
name
- the preference namevalue
- the new value associated to the preferencevoid setUserPropertyValue(String user, String name, Object value)
user
- the user namename
- the preference namevoid setApplicationPropertyValue(String applicationId, String name, Object value)
applicationId
- the application Idname
- the preference nameSet<String> getGlobalProperties()
Set<String> getUserProperties(String user)
user
- the user nameSet<String> getApplicationProperties(String applicationId)
applicationId
- the application Idvoid addApplicationPreferenceChangeListener(String applicationId, PreferenceChangeListener listener)
applicationId
- application idlistener
- the listener to registervoid removeApplicationPreferenceChangeListener(String applicationId, PreferenceChangeListener listener)
applicationId
- application idlistener
- the listener to unregistervoid addUserPreferenceChangeListener(String userId, PreferenceChangeListener listener)
userId
- user idlistener
- the listener to registervoid removeUserPreferenceChangeListener(String userId, PreferenceChangeListener listener)
userId
- user idlistener
- the listener to unregistervoid addGlobalPreferenceChangeListener(PreferenceChangeListener listener)
listener
- the listener to registervoid removeGlobalPreferenceChangeListener(PreferenceChangeListener listener)
listener
- the listener to unregisterCopyright © 2012-2013 ADELE Research Group. All Rights Reserved.