Examples of CapacityPicker


Examples of org.libreplan.web.common.components.CapacityPicker

            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(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.