Examples of LabelFormatter


Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        return result;
    }

    private void checkAddressInformationForForeignStudents(final List<LabelFormatter> result) {
        if (!getCountryOfResidence().isDefaultCountry() && !this.dislocatedFromPermanentResidence) {
            result.add(new LabelFormatter()
                    .appendLabel(
                            "error.candidacy.workflow.ResidenceInformationForm.non.nacional.students.should.select.dislocated.option.and.fill.address",
                            "application"));
        }
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        }
    }

    private void checkAddressInformationForNationalStudents(final List<LabelFormatter> result) {
        if (getCountryOfResidence().isDefaultCountry() && !isResidenceInformationFilled()) {
            result.add(new LabelFormatter()
                    .appendLabel(
                            "error.candidacy.workflow.ResidenceInformationForm.address.national.students.should.supply.complete.address.information",
                            "application"));
        }
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

                    .isEmpty(this.area));
    }

    private void checkAddressInformationForDislocatedStudents(final List<LabelFormatter> result) {
        if (isAnySchoolTimeAddressInformationFilled() && !this.dislocatedFromPermanentResidence) {
            result.add(new LabelFormatter()
                    .appendLabel(
                            "error.candidacy.workflow.ResidenceInformationForm.only.dislocated.students.should.fill.school.time.address.information",
                            "application"));
        }

        if (this.dislocatedFromPermanentResidence) {

            if (!isSchoolTimeRequiredInformationAddressFilled()) {
                result.add(new LabelFormatter()
                        .appendLabel(
                                "error.candidacy.workflow.ResidenceInformationForm.address.information.is.required.for.dislocated.students",
                                "application"));
            } else {
                if (isAnyFilled(this.schoolTimeAddress, this.schoolTimeAreaCode, this.schoolTimeAreaOfAreaCode,
                        this.schoolTimeArea, this.schoolTimeParishOfResidence)
                        && isAnyEmpty(this.schoolTimeAddress, this.schoolTimeAreaCode, this.schoolTimeAreaOfAreaCode,
                                this.schoolTimeArea, this.schoolTimeParishOfResidence)) {

                    result.add(new LabelFormatter()
                            .appendLabel(
                                    "error.candidacy.workflow.ResidenceInformationForm.school.time.address.must.be.filled.completly.otherwise.fill.minimun.required",
                                    "application"));
                }
            }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        return getDescriptionForEntryType(EntryType.RESIDENCE_FEE);
    }

    @Override
    public LabelFormatter getDescriptionForEntryType(EntryType entryType) {
        final LabelFormatter labelFormatter = new LabelFormatter();

        labelFormatter.appendLabel(entryType.name(), LabelFormatter.ENUMERATION_RESOURCES);
        labelFormatter.appendLabel(" - ");
        labelFormatter.appendLabel(getResidenceMonth().getMonth().getName(), "enum");
        labelFormatter.appendLabel("-");
        labelFormatter.appendLabel(getResidenceMonth().getYear().getYear().toString());
        return labelFormatter;
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

    public PaymentCodeState getPaymentCodeStateFor(final PaymentMode paymentMode) {
        return (paymentMode == PaymentMode.ATM) ? PaymentCodeState.PROCESSED : PaymentCodeState.CANCELLED;
    }

    public LabelFormatter getDescription() {
        final LabelFormatter result = new LabelFormatter();
        result.appendLabel(getEventType().getQualifiedName(), LabelFormatter.ENUMERATION_RESOURCES);
        return result;
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        this.actualFile = (file != null) ? file.getFilename() + " - " + file.getUploadTime().toString("dd/MM/yyyy hh:mm") : null;
        this.candidacyDocument = candidacyDocument;
    }

    public String getActualFile() {
        return (actualFile == null) ? new LabelFormatter().appendLabel("label.file.not.uploaded.yet", Bundle.CANDIDATE)
                .toString() : actualFile;
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getDocumentDescription() {
        return new LabelFormatter().appendLabel("label." + documentDescription, Bundle.CANDIDATE).toString();
    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        return numberOfMonths < getMaxMonthsToApplyPenalty() ? numberOfMonths : getMaxMonthsToApplyPenalty();
    }

    @Override
    public LabelFormatter getDescription() {
        return new LabelFormatter().appendLabel("application", "label.InstallmentForFirstTimeStudents.description",
                getInstallmentOrder().toString(), getStartDate().toString(DateFormatUtil.DEFAULT_DATE_FORMAT), getEndDate()
                        .toString(DateFormatUtil.DEFAULT_DATE_FORMAT), getPenaltyPercentage().multiply(BigDecimal.valueOf(100))
                        .toString(), getNumberOfDaysToStartApplyingPenalty().toString());

    }
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        return getPenaltyAppliable().booleanValue();
    }

    @Override
    public LabelFormatter getDescription() {
        final LabelFormatter labelFormatter = new LabelFormatter();

        if (isPenaltyAppliable()) {
            labelFormatter.appendLabel("application", "label.PartialRegimeInstallment.description.with.penalty",
                    getInstallmentOrder().toString(), getStartDate().toString(DateFormatUtil.DEFAULT_DATE_FORMAT), getEndDate()
                            .toString(DateFormatUtil.DEFAULT_DATE_FORMAT), buildExecutionSemesterDescription(),
                    getPenaltyPercentage().multiply(BigDecimal.valueOf(100)).toString(),
                    getWhenStartToApplyPenalty().toString(DateFormatUtil.DEFAULT_DATE_FORMAT));
        } else {
            labelFormatter.appendLabel("application", "label.PartialRegimeInstallment.description.without.penalty",
                    getInstallmentOrder().toString(), getStartDate().toString(DateFormatUtil.DEFAULT_DATE_FORMAT), getEndDate()
                            .toString(DateFormatUtil.DEFAULT_DATE_FORMAT), buildExecutionSemesterDescription());
        }

        return labelFormatter;
View Full Code Here

Examples of pt.utl.ist.fenix.tools.resources.LabelFormatter

        return true;
    }

    @Override
    public LabelFormatter getDescription() {
        final LabelFormatter labelFormatter = new LabelFormatter();
        labelFormatter.appendLabel("application", "label.InstallmentWithMonthlyPenalty.description", getInstallmentOrder()
                .toString(), getStartDate().toString(DateFormatUtil.DEFAULT_DATE_FORMAT),
                getEndDate().toString(DateFormatUtil.DEFAULT_DATE_FORMAT),
                getPenaltyPercentage().multiply(BigDecimal.valueOf(100)).toString(),
                getWhenStartToApplyPenalty().toString(DateFormatUtil.DEFAULT_DATE_FORMAT));
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.