public class FontSetting extends SchemaSetting
Setting.DataType
owner
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, requiresRestart
public FontSetting(java.lang.String nameToShow, java.lang.String tooltip)
public Setting.DataType getDataType()
Setting
getDataType
in interface Setting
getDataType
in class SchemaSetting
public java.lang.String[] getSelection()
Setting
Setting.getDataType()
returns Setting.DataType.SELECTION
.
The default implementation therefore returns an empty array.Setting.DataType.SELECTION
.public java.lang.Object getCurrentValue()
Setting
getCurrentValue
in interface Setting
getCurrentValue
in class SchemaSetting
public boolean validate(java.lang.Object input)
validate
in interface Validator
validate
in class SchemaSetting
public void apply(java.lang.Object input)
Setting
apply
in interface Setting
apply
in class SchemaSetting
input
- The input. It is either the current value of the setting, or validated successfully.