コード例 #1
0
  @Override
  public void createFormContent(final IFormEditorPageSite site) {
    super.createFormContent(site);

    String nummer = eigentum.objektNummer().get() != null ? eigentum.schl().get() : "neu";

    site.setEditorTitle(formattedTitle("Wohnungseigentum", nummer, null));
    site.setFormTitle(formattedTitle("Wohnungseigentum", nummer, getTitle()));

    Composite parent = site.getPageBody();
    Composite schildForm = createEditorForm(parent);

    Composite extendedForm = createErweiterteDatenForm(schildForm);
  }
コード例 #2
0
  private void refreshResult() {
    Double f1 = factor1Value == null ? factor1.get() : factor1Value;
    Double f2 = factor2Value == null ? factor2.get() : factor2Value;

    Double resultValue = (f1 == null ? 0 : f1) * (f2 == null ? 0 : f2);
    if (roundUp) {
      resultValue = MathUtil.round(resultValue);
    }
    site.setFieldValue(
        result.qualifiedName().name(),
        NumberFormatter.getFormatter(fractionDigits).format(resultValue));
  }