Package net.mezzdev.config.gui.api
Interface IConfigValueEditorMetadata<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
IConfigValueLocalizationProvider<T>
- All Known Subinterfaces:
IConfigListValueEditorMetadata<T>,IConfigRangeValueEditorMetadata<T>
- All Known Implementing Classes:
ConfigValueEditorMetadata,ListValueEditorMetadata
Editor selection, validation, and localized text for values edited by a config screen.
- Since:
- 0.6.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the available choices when the value has a finite set of valid options.Get the kind of editor used for this value.booleanCheck whether a proposed value can be applied.Methods inherited from interface net.mezzdev.config.gui.api.IConfigValueLocalizationProvider
getLocalizedValueDescription, getLocalizedValueName
-
Method Details
-
getEditorType
ConfigValueEditorType<T> getEditorType()Get the kind of editor used for this value.- Since:
- 0.6.0
-
isValid
Check whether a proposed value can be applied.- Since:
- 0.6.0
-
getAllValidValues
Get the available choices when the value has a finite set of valid options.- Returns:
- the valid options, or empty when they cannot be enumerated
- Since:
- 0.6.0
-