Package net.mezzdev.config.gui.internal
Class ConfigValueEditorMetadataFactory
java.lang.Object
net.mezzdev.config.gui.internal.ConfigValueEditorMetadataFactory
- All Implemented Interfaces:
IConfigValueEditorMetadataFactory
public final class ConfigValueEditorMetadataFactory
extends Object
implements IConfigValueEditorMetadataFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.IConfigValue<T> value) <T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, ConfigValueEditorType<T> editorType) Create metadata for a chosen editor with standard localized text.<T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, T value) Create metadata for a standard editor appropriate for the value and its storage constraints.createRange(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<net.mezzdev.config.api.value.serializer.ConfigValueRange<T>> serializer, net.mezzdev.config.api.value.serializer.ConfigValueRange<T> bounds) Create metadata for editing a numeric interval with two slider handles.
-
Field Details
-
INSTANCE
-
-
Method Details
-
create
-
create
public <T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, T value) Description copied from interface:IConfigValueEditorMetadataFactoryCreate metadata for a standard editor appropriate for the value and its storage constraints.- Specified by:
createin interfaceIConfigValueEditorMetadataFactory- Parameters:
serializer- the value's serialization and validation rulesvalue- a representative value for choosing the editor- Returns:
- editor metadata with storage validation, available choices, and standard localized text
-
create
public <T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, ConfigValueEditorType<T> editorType) Description copied from interface:IConfigValueEditorMetadataFactoryCreate metadata for a chosen editor with standard localized text.- Specified by:
createin interfaceIConfigValueEditorMetadataFactory- Parameters:
serializer- the value's serialization and validation ruleseditorType- the editor to use
-
createRange
public <T> IConfigRangeValueEditorMetadata<T> createRange(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<net.mezzdev.config.api.value.serializer.ConfigValueRange<T>> serializer, net.mezzdev.config.api.value.serializer.ConfigValueRange<T> bounds) Description copied from interface:IConfigValueEditorMetadataFactoryCreate metadata for editing a numeric interval with two slider handles.- Specified by:
createRangein interfaceIConfigValueEditorMetadataFactory- Parameters:
serializer- the interval's serialization and validation rulesbounds- the inclusive bounds for both endpoints
-