Examples of ProgressType


Examples of org.libreplan.business.common.entities.ProgressType

            @Override
            public void onEvent(Event event) {
                Listitem selectedItem = getSelectedItem((SelectEvent) event);
                if (selectedItem != null) {
                    ProgressType progressType = (ProgressType) selectedItem
                            .getValue();
                    configurationModel.setProgressType(progressType);
                }
            }
View Full Code Here

Examples of org.libreplan.business.common.entities.ProgressType

    private static class ProgressTypeRenderer implements ListitemRenderer {

        @Override
        public void render(Listitem item, Object data) {
            ProgressType progressType = (ProgressType) data;
            item.setLabel(_(progressType.getValue()));
            item.setValue(progressType);
        }
View Full Code Here

Examples of org.libreplan.business.common.entities.ProgressType

            @Override
            public BigDecimal getAdvancePercentage() {
                if (taskElement != null) {
                    BigDecimal advancePercentage;
                    if (isTaskRoot(taskElement)) {
                        ProgressType progressType = getProgressTypeFromConfiguration();
                        advancePercentage = taskElement
                                .getAdvancePercentage(progressType);
                    } else {
                        advancePercentage = taskElement.getAdvancePercentage();
                    }
View Full Code Here

Examples of org.libreplan.business.common.entities.ProgressType

        });

        cbProgressTypes.setVisible(true);

        ProgressType progressType = getProgressTypeFromConfiguration();
        if (progressType != null) {
            planner.updateCompletion(progressType.toString());
        }

    }
View Full Code Here

Examples of org.libreplan.business.common.entities.ProgressType

    private class ProgressTypeRenderer implements ComboitemRenderer {

        @Override
        public void render(Comboitem item, Object data) {
            final ProgressType progressType = (ProgressType) data;
            item.setValue(progressType);
            item.setLabel(_(progressType.getValue()));

            ProgressType configuredProgressType = getProgressTypeFromConfiguration();
            if ((configuredProgressType != null)
                    && configuredProgressType.equals(progressType)) {
                cbProgressTypes.setSelectedItem(item);
            }
        }
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.