Examples of LabelFormatter


Examples of ca.nanometrics.gflot.client.options.LegendOptions.LabelFormatter

        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.downSamplingStrategy( 20 ) );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
            .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
            .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 0d ) );
        plotOptions.setLegendOptions( new LegendOptions().setLabelFormatter( new LabelFormatter()
        {
            @Override
            public String formatLabel( String label, Series series )
            {
                return label + " formated";
View Full Code Here

Examples of com.google.gwt.widgetideas.client.SliderBar.LabelFormatter

    mSlider.setWidth("300px");
   
    /**
     * Adds time labels to slider.
     */
    mSlider.setLabelFormatter(new LabelFormatter() {
      public String formatLabel(SliderBar s, double val) {
       
        String time = "";
        if (mSliderStartTime == 0 || mSliderEndTime == 0) {
          time = String.valueOf((int) val);
View Full Code Here

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

    }

    @Override
    public int doEndTag() throws JspException {

        final LabelFormatter labelFormatter =
                (LabelFormatter) TagUtils.getInstance().lookup(this.pageContext, this.name, this.property, this.scope);

        final JspWriter out = this.pageContext.getOut();

        try {
            out.write(labelFormatter.toString(new StrutsMessageResourceProvider(this.properties, getUserLocale(),
                    this.pageContext.getServletContext(), (HttpServletRequest) this.pageContext.getRequest())));
        } catch (IOException e) {
            throw new JspException(e);
        }
View Full Code Here

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

                        "error.accounting.postingRules.gratuity.DFAGratuityPR.amount.being.payed.must.be.equal.to.amout.in.debt",
                        event.getDescriptionForEntryType(getEntryType()));
            }
        } else {
            if (!isPayingTotalAmount(event, when, amountToAdd) && !isPayingPartialAmount(event, when, amountToAdd)) {
                final LabelFormatter percentageLabelFormatter = new LabelFormatter();
                percentageLabelFormatter.appendLabel(getDfaPartialAcceptedPercentage().multiply(BigDecimal.valueOf(100))
                        .toString());

                throw new DomainExceptionWithLabelFormatter(
                        "error.accounting.postingRules.gratuity.DFAGratuityPR.invalid.partial.payment.value",
                        event.getDescriptionForEntryType(getEntryType()), percentageLabelFormatter);
View Full Code Here

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

                        "error.accounting.postingRules.gratuity.SpecializationDegreeGratuityPR.amount.being.payed.must.be.equal.to.amout.in.debt",
                        event.getDescriptionForEntryType(getEntryType()));
            }
        } else {
            if (!isPayingTotalAmount(event, when, amountToAdd) && !isPayingPartialAmount(event, when, amountToAdd)) {
                final LabelFormatter percentageLabelFormatter = new LabelFormatter();
                percentageLabelFormatter.appendLabel(getSpecializationDegreePartialAcceptedPercentage().multiply(
                        BigDecimal.valueOf(100)).toString());

                throw new DomainExceptionWithLabelFormatter(
                        "error.accounting.postingRules.gratuity.SpecializationDegreeGratuityPR.invalid.partial.payment.value",
                        event.getDescriptionForEntryType(getEntryType()), percentageLabelFormatter);
View Full Code Here

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

    private void validateSocialSecurityNumber(List<LabelFormatter> result) {
        final Party party = PartySocialSecurityNumber.readPartyBySocialSecurityNumber(socialSecurityNumber);
        final User user = User.findByUsername(username);
        if (party != null && party != user.getPerson()) {
            result.add(new LabelFormatter().appendLabel(
                    "error.candidacy.workflow.PersonalInformationForm.socialSecurityNumber.already.exists", "application"));
        }
    }
View Full Code Here

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

        }
    }

    private void checkGrantOwnerType(final List<LabelFormatter> result) {
        if (getGrantOwnerType().equals(GrantOwnerType.OTHER_INSTITUTION_GRANT_OWNER) && getGrantOwnerProvider() == null) {
            result.add(new LabelFormatter().appendLabel(
                    "error.candidacy.workflow.PersonalInformationForm.grant.owner.must.choose.granting.institution",
                    "application"));
        }
    }
View Full Code Here

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

    @Override
    public List<LabelFormatter> validate() {
        if (getCountryOfBirth().isDefaultCountry()) {
            if (StringUtils.isEmpty(getDistrictOfBirth()) || StringUtils.isEmpty(getDistrictSubdivisionOfBirth())
                    || StringUtils.isEmpty(getParishOfBirth())) {
                return Collections.singletonList(new LabelFormatter(
                        "error.candidacy.workflow.FiliationForm.zone.information.is.required.for.national.students",
                        "application"));
            }
        }
View Full Code Here

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

    }

    @Override
    public List<LabelFormatter> validate() {
        if (!StringUtils.isEmpty(this.notesAboutApplianceForResidence) && !isToApplyForResidence) {
            return Collections.singletonList(new LabelFormatter().appendLabel(
                    "error.candidacy.workflow.ResidenceApplianceInquiryForm.notes.can.only.be.filled.in.case.of.appliance",
                    "application"));
        }

        return Collections.emptyList();
View Full Code Here

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

    }

    @Override
    public List<LabelFormatter> validate() {
        if (schoolLevel == SchoolLevelType.OTHER && StringUtils.isEmpty(otherSchoolLevel)) {
            return Collections.singletonList(new LabelFormatter().appendLabel(
                    "error.candidacy.workflow.OriginInformationForm.otherSchoolLevel.must.be.filled", "candidate"));
        }

        LocalDate now = new LocalDate();
        if (now.getYear() < conclusionYear) {
            return Collections.singletonList(new LabelFormatter().appendLabel("error.personalInformation.year.after.current",
                    "candidate"));
        }

        if (conclusionYear < getBirthYear()) {
            return Collections.singletonList(new LabelFormatter().appendLabel("error.personalInformation.year.before.birthday",
                    "candidate"));
        }

        return Collections.emptyList();
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.