DateTimeField.this.configure(widgetProperties);
}
});
add(hoursField = new TextField("hours", new PropertyModel(this, "hours"), Integer.class));
hoursField.add(new HoursValidator());
hoursField.setLabel(new Model("hours"));
add(minutesField = new TextField("minutes", new PropertyModel(this, "minutes"),
Integer.class)
{
private static final long serialVersionUID = 1L;
public IConverter getConverter(Class type)
{
return MINUTES_CONVERTER;
}
});
minutesField.add(NumberValidator.range(0, 59));
minutesField.setLabel(new Model("minutes"));
add(amOrPmChoice = new DropDownChoice("amOrPmChoice", new PropertyModel(this, "amOrPm"),
Arrays.asList(AM_PM.values())));
}