public class Preference extends NamedValue implements Serializable
Constructor and Description |
---|
Preference()
Construct Preference.
|
Preference(String name,
Object value)
Construct a Preference.
|
Preference(String name,
Object value,
boolean isLocked)
Construct a Preference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isLocked()
Whether the preference is locked from override.
|
void |
setLocked(boolean isLocked)
Indicate whether the preference value is overridable.
|
getName, getValue, getWrappedValue, mapToNamedValues, namedValuesToMap, setName, setValue, setWrappedValue, toString
public Preference()
Required constructor in order to be a Java Bean.
public Preference(String name, Object value)
For use in specifying a Preference as an input to a call to (for example) setUserPreference.
name
- the name of the preference valuevalue
- the value of the preference valuepublic Preference(String name, Object value, boolean isLocked)
For use internally to construct a Preference as a return value from (for example) getUserPreference.
name
- the name of the preference valuevalue
- the value of the preference valueisLocked
- indicates if the preference value is overridablepublic boolean isLocked()
public void setLocked(boolean isLocked)
This method may be used in conjunction with the non-arg constructor
variant. The value is not actually set untill one of the UserManager's
set
isLocked
- indicates if the preference value is overridableCopyright © 2023. All rights reserved.