V
- type of Settingpublic interface Setting<V> extends java.lang.Comparable<Setting>, TypeConverter<V,java.lang.String>
Setting
is a configuration parameter with a fixed set of valid values and encapsulted in a model object
(usually a singleton)
This can either be a configuration parameter that changes the or a user preference of some sort.
These can always be set as values in the config but user preferences may also be overidden
by database settings in on a per-user basis.
The Setting
interface is primarily used by the user preference transition but this can also be used by
an admin to change system parameters.Modifier and Type | Method and Description |
---|---|
default int |
compareTo(Setting o) |
V |
getCurrent(AppContext conn)
get the current value of the setting
|
V |
getDefault()
get the default (compiled) value of the setting.
|
java.lang.String |
getDescription()
Descriptive text of the purpose/meaning of the setting.
|
ItemInput<java.lang.String,V> |
getInput(AppContext conn)
and
Input to select the setting |
java.lang.String |
getName()
Name of the setting.
|
find, getIndex
java.lang.String getName()
java.lang.String getDescription()
ItemInput<java.lang.String,V> getInput(AppContext conn)
Input
to select the settingdefault int compareTo(Setting o)
compareTo
in interface java.lang.Comparable<Setting>
V getDefault()
V getCurrent(AppContext conn)
conn
- AppContext