Example usage for org.apache.wicket.markup.html.form RadioChoice RadioChoice

List of usage examples for org.apache.wicket.markup.html.form RadioChoice RadioChoice

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form RadioChoice RadioChoice.

Prototype

public RadioChoice(String id, IModel<? extends List<? extends T>> choices) 

Source Link

Document

Constructor

Usage

From source file:com.userweave.module.methoden.questionnaire.page.grouping.multiplepossibleanswers.multipleanswer.MultipleAnswerGroupingPanel.java

License:Open Source License

public MultipleAnswerGroupingPanel(String id, MultipleAnswersQuestion multipleAnswersQuestion, Locale locale,
        GroupAddedCallback<QuestionnaireGroup> groupAddedCallback) {
    super(id, multipleAnswersQuestion, new MultipleAnswersGroup(), locale, groupAddedCallback);

    getStimulus().setDefaultModel(new LocalizedPropertyModel(multipleAnswersQuestion, "text", locale));
    getStimulus().modelChanged();/*from  www. j  a v  a  2  s.c  o  m*/

    add(logicalChoices = new RadioChoice("operator", Arrays.asList(MultipleAnswersGroup.Operator.values())));

    logicalChoices.setOutputMarkupId(true);

    logicalChoices.setEnabled(false);
}