* yes / no switch if a date.time constraint is defined
*/
dateSubContainer = (FormItemContainer) FormLayoutContainer.createDefaultFormLayout("dateSubContainer", getTranslator());
formLayout.add(dateSubContainer);
fromDate = new JSDateChooser("fromDate", validatedCondition.getEasyModeBeginDate()) {
{
setLabel("form.easy.bdate", null);
displaySize = 17;
setExampleKey("form.easy.example.bdate", null);
// time is enabled
setDateChooserTimeEnabled(true);
// not i18n'ified yet
setDateChooserDateFormat("%d.%m.%Y %H:%M");
setCustomDateFormat("dd.MM.yyyy HH:mm");
displaySize = getExampleDateString().length();
}
};
dateSubContainer.add(fromDate);
toDate = new JSDateChooser("toDate", validatedCondition.getEasyModeEndDate()) {
{
setLabel("form.easy.edate", null);
setExampleKey("form.easy.example.edate", null);
// time is enabled
setDateChooserTimeEnabled(true);