Class ConfigValueEditorMetadataFactory

java.lang.Object
net.mezzdev.config.gui.internal.ConfigValueEditorMetadataFactory
All Implemented Interfaces:
IConfigValueEditorMetadataFactory

public final class ConfigValueEditorMetadataFactory extends Object implements IConfigValueEditorMetadataFactory
  • Field Details

  • Method Details

    • create

      public <T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.IConfigValue<T> value)
    • create

      public <T> IConfigValueEditorMetadata<T> create(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, T value)
      Description copied from interface: IConfigValueEditorMetadataFactory
      Create metadata for a standard editor appropriate for the value and its storage constraints.
      Specified by:
      create in interface IConfigValueEditorMetadataFactory
      Parameters:
      serializer - the value's serialization and validation rules
      value - 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: IConfigValueEditorMetadataFactory
      Create metadata for a chosen editor with standard localized text.
      Specified by:
      create in interface IConfigValueEditorMetadataFactory
      Parameters:
      serializer - the value's serialization and validation rules
      editorType - 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: IConfigValueEditorMetadataFactory
      Create metadata for editing a numeric interval with two slider handles.
      Specified by:
      createRange in interface IConfigValueEditorMetadataFactory
      Parameters:
      serializer - the interval's serialization and validation rules
      bounds - the inclusive bounds for both endpoints