public interface Setting extends Validator
Modifier and Type | Interface and Description |
---|---|
static class |
Setting.DataType
The type of data which this setting represents.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(java.lang.Object input)
Applies the given input to this setting.
|
java.lang.Object |
getCurrentValue()
Gets the initial, current value of this setting.
|
Setting.DataType |
getDataType()
The data type which this setting represents.
|
java.lang.String |
getId()
The ID of this setting to uniquely identify the setting.
|
java.lang.String |
getName()
Gets the name to display this setting with.
|
default java.lang.String[] |
getSelection()
Gets the selection of strings that this setting may take.
|
java.lang.String |
getTooltip()
Gets the tooltip to offer more information for this setting.
|
boolean |
requiresRestart()
Returns whether changing this setting requires a restart to be performed, in order for the setting to become active.
|
java.lang.String getId()
Setting.DataType getDataType()
java.lang.Object getCurrentValue()
java.lang.String getName()
java.lang.String getTooltip()
void apply(java.lang.Object input)
input
- The input. It is either the current value of the setting, or validated successfully.default java.lang.String[] getSelection()
getDataType()
returns Setting.DataType.SELECTION
.
The default implementation therefore returns an empty array.Setting.DataType.SELECTION
.boolean requiresRestart()