CheckBox toInclusive = new CheckBox("To inclusive",
bi.getItemProperty("toInclusive"));
fromInclusive.setImmediate(true);
fromInclusive.addListener(refreshField);
toInclusive.setImmediate(true);
toInclusive.addListener(refreshField);
PopupDateField toField = createDateField();
toField.setPropertyDataSource(bi.getItemProperty("to"));
actualDateField = createDateField();