@@ -0,0 +1,1077 @@
+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.EnumChoiceRenderer;%0Aimport org.apache.wicket.markup.html.form.RadioChoice;%0A%0A/**%0A * Radio component that displays localized values of certain enumeration.%0A */%0Apublic class EnumRadioChoice extends RadioChoice%3CEnum%3C?%3E%3E %7B%0A%0A    @SuppressWarnings(%7B %22rawtypes%22, %22unchecked%22 %7D)%0A    public EnumRadioChoice(String id, Class%3C? extends Enum%3C?%3E%3E enumClass) %7B%0A        this(id, EnumSet.allOf((Class%3CEnum%3E) enumClass));%0A    %7D%0A%0A    public EnumRadioChoice(String id, Enum%3C?%3E%5B%5D choices) %7B%0A        this(id, Arrays.asList(choices));%0A    %7D%0A%0A    public EnumRadioChoice(String id, Set%3C? extends Enum%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 EnumRadioChoice(String id, List%3C? extends Enum%3C?%3E%3E choices) %7B%0A        super(id, choices);%0A        setChoiceRenderer(new EnumChoiceRenderer(this));%0A    %7D%0A%7D%0A

Add enum radio choice