Class StringSetting

java.lang.Object
com.j3d.gen.settings.Setting<String>
com.j3d.gen.settings.types.StringSetting
All Implemented Interfaces:
EventEmitterInterface, SettingsChild

public class StringSetting extends Setting<String>
  • Constructor Details

  • Method Details

    • panel

      public EnterValueSPanel panel()
      Description copied from class: Setting
      Returns the panel associated with this setting for display and interaction.
      Specified by:
      panel in interface SettingsChild
      Overrides:
      panel in class Setting<String>
      Returns:
      A UI component representing this setting, or null if not implemented by a subclass.
    • onSetValue

      public StringSetting onSetValue(Function<String,Void> callback)
      Description copied from class: Setting
      Registers a callback function to be executed whenever the setting's value is changed. The callback receives the new value as an argument.
      Overrides:
      onSetValue in class Setting<String>
      Parameters:
      callback - The Function to be called on value change.
      Returns:
      This Setting instance, allowing for method chaining.
    • fromString

      public String fromString(String str)
      Description copied from class: Setting
      Converts a string representation back to the setting's type.
      Overrides:
      fromString in class Setting<String>
      Parameters:
      str - The string to convert.
      Returns:
      The value of type T parsed from the string.