Package org.projectforge.web.wicket.converter

Examples of org.projectforge.web.wicket.converter.CurrencyConverter


      // Amount / debit/credit
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("fibu.common.betrag") + "/" + getString("finance.accountingRecord.dc"));
      final MinMaxNumberField<BigDecimal> betragField = new MinMaxNumberField<BigDecimal>(InputPanel.WICKET_ID,
          new PropertyModel<BigDecimal>(data, "betrag"), new BigDecimal("-99999999"), new BigDecimal("99999999"));
      fs.add(betragField);
      WicketUtils.setReadonly(betragField.setConverter(new CurrencyConverter()));
      final I18nEnumAutoCompleteTextField<SHType> dcField = new I18nEnumAutoCompleteTextField<SHType>(InputPanel.WICKET_ID,
          new PropertyModel<SHType>(data, "sh"), SHType.values());
      WicketUtils.setReadonly(dcField);
      dcField.setEnabled(false);
      fs.add(dcField);
View Full Code Here


        final TextField<String> amount = new TextField<String>("amount", new PropertyModel<String>(entry, "amount")) {
          @SuppressWarnings({ "rawtypes", "unchecked"})
          @Override
          public IConverter getConverter(final Class type)
          {
            return new CurrencyConverter();
          }
        };
        item.add(amount);
        item.add(new MaxLengthTextField("comment", new PropertyModel<String>(entry, "comment")));
        item.add(new CheckBox("reached", new PropertyModel<Boolean>(entry, "reached")));
View Full Code Here

      fs.add(new TextField<BigDecimal>(InputPanel.WICKET_ID, new PropertyModel<BigDecimal>(data, "bruttoMitAgAnteil")) {
        @SuppressWarnings({ "unchecked", "rawtypes"})
        @Override
        public IConverter getConverter(final Class type)
        {
          return new CurrencyConverter();
        }
      });
    }
    {
      // Comment
View Full Code Here

        fs.add(new TextField<String>(InputPanel.WICKET_ID, new PropertyModel<String>(position, "nettoSumme")) {
          @SuppressWarnings({ "rawtypes", "unchecked"})
          @Override
          public IConverter getConverter(final Class type)
          {
            return new CurrencyConverter();
          }
        });
        if (abgeschlossenUndNichtFakturiert == true) {
          fs.setWarningBackground();
        }
View Full Code Here

          new PropertyModel<BigDecimal>(getSettings(), "startAmount"), Constants.TEN_BILLION_NEGATIVE, Constants.TEN_BILLION) {
        @SuppressWarnings({ "rawtypes", "unchecked"})
        @Override
        public IConverter getConverter(final Class type)
        {
          return new CurrencyConverter();
        }
      };
      WicketUtils.setSize(amount, 8);
      fs.add(amount);
    }
View Full Code Here

          "zahlBetrag")) {
        @SuppressWarnings({ "rawtypes", "unchecked"})
        @Override
        public IConverter getConverter(final Class type)
        {
          return new CurrencyConverter();
        }
      };
      dependentFormComponents[3] = zahlBetragField;
      fs.add(zahlBetragField);
    }
View Full Code Here

              position, "einzelNetto")) {
            @SuppressWarnings({ "rawtypes", "unchecked"})
            @Override
            public IConverter getConverter(final Class type)
            {
              return new CurrencyConverter();
            }
          };
          netTextField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
            @Override
            protected void onUpdate(final AjaxRequestTarget target)
View Full Code Here

        new PropertyModel<BigDecimal>(zuweisung, "netto"), Constants.TEN_BILLION_NEGATIVE, Constants.TEN_BILLION) {
      @SuppressWarnings({ "rawtypes", "unchecked"})
      @Override
      public IConverter getConverter(final Class type)
      {
        return new CurrencyConverter(position.getNetSum());
      }
    };
    netto.setLabel(new Model<String>(getString("fibu.common.netto")));
    WicketUtils.addTooltip(netto, getString("currencyConverter.percentage.help"));
    row.add(netto);
View Full Code Here

          new PropertyModel<BigDecimal>(data, "amount"), Constants.TEN_BILLION_NEGATIVE, Constants.TEN_BILLION) {
        @SuppressWarnings({ "rawtypes", "unchecked"})
        @Override
        public IConverter getConverter(final Class type)
        {
          return new CurrencyConverter();
        }
      };
      WicketUtils.setSize(amount, 8);
      fs.add(amount);
      if (isNew() == false) {
View Full Code Here

TOP

Related Classes of org.projectforge.web.wicket.converter.CurrencyConverter

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.