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

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


                "error.net.sourceforge.fenixedu.domain.accounting.events.penaltyExemptionJustifications.PenaltyExemptionJustificationByDispatch.cannot.modify.penaltyExemptionDispatchDate");
    }

    @Override
    public LabelFormatter getDescription() {
        final LabelFormatter labelFormatter = new LabelFormatter();
        labelFormatter.appendLabel(getPenaltyExemptionJustificationType().getQualifiedName(),
                LabelFormatter.ENUMERATION_RESOURCES);
        String penaltyExemptionDate =
                getPenaltyExemptionDispatchDate() != null ? getPenaltyExemptionDispatchDate().toString(
                        DateFormatUtil.DEFAULT_DATE_FORMAT) : "-";
        labelFormatter.appendLabel(" (").appendLabel("label.in", LabelFormatter.APPLICATION_RESOURCES).appendLabel(" ")
                .appendLabel(penaltyExemptionDate).appendLabel(")");

        return labelFormatter;
    }
View Full Code Here


    }

    @Override
    public LabelFormatter getDescriptionForEntryType(EntryType entryType) {
        final LabelFormatter labelFormatter =
                new LabelFormatter().appendLabel(entryType.name(), LabelFormatter.ENUMERATION_RESOURCES);
        addCommonDescription(labelFormatter);

        return labelFormatter;
    }
View Full Code Here

        return labelFormatter;
    }

    @Override
    public LabelFormatter getDescription() {
        final LabelFormatter labelFormatter = super.getDescription();
        addCommonDescription(labelFormatter);

        return labelFormatter;
    }
View Full Code Here

        return EntryType.SECOND_CYCLE_INDIVIDUAL_CANDIDACY_FEE;
    }

    @Override
    public LabelFormatter getDescription() {
        final LabelFormatter labelFormatter = super.getDescription();
        labelFormatter.appendLabel(" - ");
        for (Degree s : getIndividualCandidacy().getAllDegrees()) {
            labelFormatter.appendLabel(s.getSigla()).appendLabel(" ");
        }
        labelFormatter.appendLabel(" - ").appendLabel(getIndividualCandidacy().getCandidacyDate().toString());

        return labelFormatter;
    }
View Full Code Here

        }
    }

    @Override
    public LabelFormatter getDescription() {
        return new LabelFormatter().appendLabel(getCandidacyExemptionJustificationType().getQualifiedName(),
                LabelFormatter.ENUMERATION_RESOURCES);
    }
View Full Code Here

    public String getKey() {
        return SEASON_KEYS[this.season - 1];
    }

    public LabelFormatter getDescription() {
        return new LabelFormatter().appendLabel(SEASON_KEYS[this.season - 1], LabelFormatter.APPLICATION_RESOURCES);

    }
View Full Code Here

        this.messages.addAll(messages);
        return this;
    }

    public InvocationResult addMessage(final String bundle, final String key, final String... args) {
        this.messages.add(new LabelFormatter(bundle, key, args));

        return this;
    }
View Full Code Here

        return this;
    }

    public InvocationResult addMessage(final String text) {
        this.messages.add(new LabelFormatter(text));

        return this;
    }
View Full Code Here

    private static void checkIfEmittedCreditNotesExceedEventsMaxReimbursableAmounts(Receipt receipt) {
        for (final Entry<Event, Money> each : calculateAmountsToReimburseByEvent(receipt).entrySet()) {
            if (!each.getKey().canApplyReimbursement(each.getValue())) {
                throw new DomainExceptionWithLabelFormatter(
                        "error.accounting.CreditNote.the.sum.credit.notes.in.emitted.state.exceeds.event.reimbursable.amount",
                        each.getKey().getDescription(), new LabelFormatter(each.getKey().getReimbursableAmount().toPlainString()));
            }
        }

    }
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.