package com.vaadin.tests.themes.valo;
import java.time.LocalDate;
+import java.util.Date;
import java.util.Locale;
import com.vaadin.navigator.View;
row.addComponent(date);
PropertysetItem item = new PropertysetItem();
- item.addItemProperty("date", new ObjectProperty<>(getDefaultDate()));
+ item.addItemProperty("date", new ObjectProperty<>(getDefaultOldDate()));
FormLayout form = new FormLayout();
form.setMargin(false);
}
}
+ private Date getDefaultOldDate() {
+ if (ValoThemeUI.isTestMode()) {
+ return new Date(2014 - 1900, 5, 7);
+ } else {
+ return new Date();
+ }
+ }
+
@Override
public void enter(ViewChangeEvent event) {
// TODO Auto-generated method stub