package dev.isxander.yacl3.impl.controller; import dev.isxander.yacl3.api.Controller; import dev.isxander.yacl3.api.Option; import dev.isxander.yacl3.api.controller.EnumDropdownControllerBuilder; import dev.isxander.yacl3.api.controller.ValueFormatter; import dev.isxander.yacl3.gui.controllers.cycling.EnumController; import dev.isxander.yacl3.gui.controllers.dropdown.EnumDropdownController; public class EnumDropdownControllerBuilderImpl> extends AbstractControllerBuilderImpl implements EnumDropdownControllerBuilder { private ValueFormatter formatter = EnumController.getDefaultFormatter()::apply; public EnumDropdownControllerBuilderImpl(Option option) { super(option); } @Override public EnumDropdownControllerBuilder formatValue(ValueFormatter formatter) { this.formatter = formatter; return this; } @Override public Controller build() { return new EnumDropdownController<>(option, formatter); } }