Examples of EffortDurationBox


Examples of org.libreplan.web.common.EffortDurationBox

        allTotalResourcesPerDay = new Label();
        allConsolidatedResourcesPerDay = new Label();
    }

    private void makeReadyInputsForCalculationTypes() {
        assignedEffortComponent = new EffortDurationBox();
        assignedEffortComponent.setWidth("80px");
    }
View Full Code Here

Examples of org.libreplan.web.common.EffortDurationBox

        }
        return allEffortInput;
    }

    private EffortDurationBox buildSumAllEffort() {
        EffortDurationBox box = isEffortDurationBoxDisabled() ? EffortDurationBox
                .notEditable() : new EffortDurationBox();
        box.setWidth("40px");
        return box;
    }
View Full Code Here

Examples of org.libreplan.web.common.EffortDurationBox

    private void addListenerIfNeeded(Component allEffortComponent) {
        if (isEffortDurationBoxDisabled()) {
            return;
        }
        final EffortDurationBox effortDurationBox = (EffortDurationBox) allEffortComponent;
        effortDurationBox.addEventListener(Events.ON_CHANGE,
                new EventListener() {

                    @Override
                    public void onEvent(Event event) {
                        EffortDuration value = effortDurationBox
                                .getEffortDurationValue();

                        ResourceAllocation<?> resourceAllocation = getAllocation();
                        resourceAllocation
                                .withPreviousAssociatedResources()
View Full Code Here

Examples of org.libreplan.web.common.EffortDurationBox

                .toLocalDate());
    }

    Component effortOnInterval(DetailItem item) {
        Component result = cannotBeEdited(item) ? new Label()
                : disableIfNeeded(item, new EffortDurationBox());
        reloadEffortOnInterval(result, item);
        componentsByDetailItem.put(item, result);
        addListenerIfNeeded(item, result);
        return result;
    }
View Full Code Here

Examples of org.libreplan.web.common.EffortDurationBox

    private void addListenerIfNeeded(final DetailItem item,
            final Component component) {
        if (cannotBeEdited(item)) {
            return;
        }
        final EffortDurationBox effortBox = (EffortDurationBox) component;
        component.addEventListener(Events.ON_CHANGE, new EventListener() {

            @Override
            public void onEvent(Event event) {
                EffortDuration value = effortBox.getEffortDurationValue();
                LocalDate startDate = restriction.limitStartDate(item
                        .getStartDate().toLocalDate());
                LocalDate endDate = restriction.limitEndDate(item.getEndDate()
                        .toLocalDate());
                changeAssignmentFunctionToManual();
                getAllocation().withPreviousAssociatedResources()
                                   .onIntervalWithinTask(startDate, endDate)
                                   .allocate(value);
                fireCellChanged(item);
                effortBox.setRawValue(getEffortForDetailItem(item));
                reloadAllEffort();
            }
        });
    }
View Full Code Here

Examples of org.libreplan.web.common.EffortDurationBox

        if (cannotBeEdited(item)) {
            Label label = (Label) component;
            label.setValue(getEffortForDetailItem(item).toFormattedString());
            label.setClass(getLabelClassFor(item));
        } else {
            EffortDurationBox effortDurationBox = (EffortDurationBox) component;
            effortDurationBox.setValue(getEffortForDetailItem(item));
            if (isLimiting) {
                effortDurationBox.setDisabled(true);
                effortDurationBox.setSclass(" limiting");
            }
        }
    }
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.