Checkbox unlimitedCheckbox = createUnlimitedCheckbox();
addNormalDurationCell(item, normalDurationPicker);
addExtraEffortCell(item, extraDurationPicker, unlimitedCheckbox);
CapacityPicker capacityPicker = CapacityPicker.workWith(unlimitedCheckbox,
normalDurationPicker,
extraDurationPicker, new Getter<Capacity>() {
@Override
public Capacity get() {
return baseCalendarModel.getCapacityAt(day);
}
}, new Setter<Capacity>() {
@Override
public void set(Capacity value) {
baseCalendarModel.setCapacityAt(day, value);
reloadDayInformation();
}
});
capacityPicker.setDisabled(baseCalendarModel.isDerived()
&& baseCalendarModel.isDefault(day));
Listcell inheritedListcell = new Listcell();
if (baseCalendarModel.isDerived()) {
Checkbox inheritedCheckbox = Util.bind(new Checkbox(),