public class FontSetting extends SchemaSetting
Setting.DataTypeowner| Constructor and Description |
|---|
FontSetting(java.lang.String nameToShow,
java.lang.String tooltip) |
| 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[] |
getSelection()
Gets the selection of strings that this setting may take.
|
boolean |
validate(java.lang.Object input) |
getId, getName, getTooltip, requiresRestartpublic FontSetting(java.lang.String nameToShow,
java.lang.String tooltip)
public Setting.DataType getDataType()
SettinggetDataType in interface SettinggetDataType in class SchemaSettingpublic java.lang.String[] getSelection()
SettingSetting.getDataType() returns Setting.DataType.SELECTION.
The default implementation therefore returns an empty array.Setting.DataType.SELECTION.public java.lang.Object getCurrentValue()
SettinggetCurrentValue in interface SettinggetCurrentValue in class SchemaSettingpublic boolean validate(java.lang.Object input)
validate in interface Validatorvalidate in class SchemaSettingpublic void apply(java.lang.Object input)
Settingapply in interface Settingapply in class SchemaSettinginput - The input. It is either the current value of the setting, or validated successfully.