@@ -0,0 +1,991 @@
+package lt.inventi.wicket.component.enums;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.EnumSet;%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport org.apache.wicket.markup.html.form.DropDownChoice;%0Aimport org.apache.wicket.markup.html.form.EnumChoiceRenderer;%0A%0Apublic class EnumDropDownChoice extends DropDownChoice%3CEnum%3C?%3E%3E %7B%0A%0A    @SuppressWarnings(%7B %22rawtypes%22, %22unchecked%22 %7D)%0A    public EnumDropDownChoice(String id, Class%3C? extends Enum%3C?%3E%3E enumClass) %7B%0A        this(id, EnumSet.allOf((Class) enumClass));%0A    %7D%0A%0A    public EnumDropDownChoice(String id, Enum%3C?%3E%5B%5D choices) %7B%0A        this(id, Arrays.asList(choices));%0A    %7D%0A%0A    public EnumDropDownChoice(String id, Set%3CEnum%3C?%3E%3E choices) %7B%0A        this(id, new ArrayList%3CEnum%3C?%3E%3E(choices));%0A    %7D%0A%0A    @SuppressWarnings(%7B %22rawtypes%22, %22unchecked%22 %7D)%0A    public EnumDropDownChoice(String id, List%3CEnum%3C?%3E%3E choices) %7B%0A        super(id, choices);%0A        setChoiceRenderer(new EnumChoiceRenderer(this));%0A    %7D%0A%0A%7D%0A

Add enum dropdownchoice