Package com.j3d.gen.settings.types
Class EnumSetting<T extends Enum>
java.lang.Object
com.j3d.gen.settings.Setting<T>
com.j3d.gen.settings.types.EnumSetting<T>
- All Implemented Interfaces:
EventEmitterInterface,SettingsChild
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String str) Converts a string representation back to the setting's type.T[]onSetValue(Function<T, Void> callback) Registers a callback function to be executed whenever the setting's value is changed.panel()Returns the panel associated with this setting for display and interaction.Methods inherited from class com.j3d.gen.settings.Setting
attachListener, broadcast, deserialize, detachAll, detachListener, getDefaultValue, getDescription, getName, getValue, isAttached, serialize, setValue, setValueNoBroadcast, valueToStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j3d.gen.settings.SettingsChild
serializedName
-
Field Details
-
values
-
-
Constructor Details
-
EnumSetting
-
-
Method Details
-
fromString
Description copied from class:SettingConverts a string representation back to the setting's type.- Overrides:
fromStringin classSetting<T extends Enum>- Parameters:
str- The string to convert.- Returns:
- The value of type T parsed from the string.
-
getValues
-
panel
Description copied from class:SettingReturns the panel associated with this setting for display and interaction. -
onSetValue
Description copied from class:SettingRegisters a callback function to be executed whenever the setting's value is changed. The callback receives the new value as an argument.
-