View Javadoc

1   package org.appfuse.webapp.pages.components.country;
2   
3   import org.apache.wicket.markup.html.form.ChoiceRenderer;
4   import org.apache.wicket.markup.html.form.DropDownChoice;
5   import org.apache.wicket.model.PropertyModel;
6   
7   import java.util.Locale;
8   
9   /**
10   * A components wrapping drop down components with countries.
11   *
12   * @author Marcin ZajÄ…czkowski, 2013-11-18
13   */
14  @Deprecated //use SimpleCountryDropDownChoice
15  public class CountryDropDownChoice extends DropDownChoice<Country> {
16  
17      public CountryDropDownChoice(String id, PropertyModel<String> country, Locale locale) {
18          super(id, new EmbeddedCountryModel(country, locale), new CountriesModel(locale), new ChoiceRenderer<>("name", "locale"));
19      }
20  }