Example usage for org.apache.wicket.markup.html.form Radio setDefaultModel

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

Introduction

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

Prototype

@Override
    public MarkupContainer setDefaultModel(final IModel<?> model) 

Source Link

Usage

From source file:gr.interamerican.wicket.markup.html.panel.DataTableRadioButtonPanel.java

License:Open Source License

/**
 * Creates a new DataTableRadioButtonPanel object. 
 *
 * @param id/* w  w  w .  j a  v  a 2 s. co m*/
 * @param model
 */
public DataTableRadioButtonPanel(String id, IModel<T> model) {
    super(id, model);
    Radio<T> radioButton = new Radio<T>(RADIO_ID);
    radioButton.setDefaultModel(model);
    add(radioButton);
}