public class SelectionSetting extends SchemaSetting
Setting.DataType
owner
Constructor and Description |
---|
SelectionSetting(java.lang.String fullName,
java.lang.String nameToShow,
boolean requiresRestart,
java.lang.String... selection) |
SelectionSetting(java.lang.String fullName,
java.lang.String nameToShow,
java.lang.String tooltip,
boolean requiresRestart,
java.lang.String... selection) |
Modifier and Type | Method and Description |
---|---|
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) |
apply, getCurrentValue, getId, getName, getTooltip, requiresRestart
public SelectionSetting(java.lang.String fullName, java.lang.String nameToShow, boolean requiresRestart, java.lang.String... selection)
public SelectionSetting(java.lang.String fullName, java.lang.String nameToShow, java.lang.String tooltip, boolean requiresRestart, java.lang.String... selection)
public java.lang.String[] getSelection()
Setting
Setting.getDataType()
returns Setting.DataType.SELECTION
.
The default implementation therefore returns an empty array.Setting.DataType.SELECTION
.public boolean validate(java.lang.Object input)
validate
in interface Validator
validate
in class SchemaSetting
public Setting.DataType getDataType()
Setting
getDataType
in interface Setting
getDataType
in class SchemaSetting