Package pt.utl.ist.fenix.tools.resources

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


        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

    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

        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

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

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

        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

        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

        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

        throw new DomainException("error.phd.candidacy.PhdProgramCandidacyEvent.cannot.modify.candidacyProcess");
    }

    @Override
    public LabelFormatter getDescriptionForEntryType(EntryType entryType) {
        final LabelFormatter labelFormatter = new LabelFormatter();
        labelFormatter.appendLabel(entryType.name(), "enum").appendLabel(" (").appendLabel(getPhdProgram().getPresentationName())
                .appendLabel(" - ").appendLabel(getExecutionYear().getYear()).appendLabel(")");

        return labelFormatter;

    }
View Full Code Here

    }

    @Override
    public LabelFormatter getDescription() {
        return new LabelFormatter().appendLabel(AlertService.getMessageFromResource("label.phd.candidacy")).appendLabel(": ")
                .appendLabel(getPhdProgram().getPresentationName()).appendLabel(" - ").appendLabel(getExecutionYear().getYear());
    }
View Full Code Here

TOP

Related Classes of pt.utl.ist.fenix.tools.resources.LabelFormatter

Copyright © 2018 www.massapicom. 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.