Examples of Formatter


Examples of org.projectforge.renderer.custom.Formatter

    // get the sheets from the given Format
    final String styleSheet = "fo-styles/" + form.getExportFormat() + "/timesheet-template-fo.xsl";
    final String xmlData = "fo-styles/" + form.getExportFormat() + "/timesheets2pdf.xml";

    // get the formatter for the different export formats
    final Formatter formatter = formatterFactory.getFormatter(form.getExportFormat());

    final Integer taskId = filter.getTaskId();

    final Map<String, Object> data = formatter.getData(timeSheets, taskId, getRequest(), getResponse(), filter);

    // render the PDF with fop
    final byte[] content = pdfRenderer.render(styleSheet, xmlData, data);

    DownloadUtils.setDownloadTarget(content, filename);
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.datatable.Formatter

    /*
     * one more experiment: a data table with very custom columns -
     * one using formatter, allowHTML and datatable event delegate for links
     */
   
    Formatter urlColumnFormatter = new Formatter() {
      @Override
      public String format(FormatterContext o) {
        return "<a href=\""+o.value()+"\">"+o.value()+"</a>";
      }     
    };
View Full Code Here

Examples of org.springframework.data.rest.shell.formatter.Formatter

      }
      buffer.append(OsUtils.LINE_SEPARATOR);
    }
    buffer.append("< ").append(OsUtils.LINE_SEPARATOR);
    if (null != response.getBody()) {
      final Formatter formatter = formatProvider.getFormatter(response.getHeaders().getContentType().getSubtype());
      buffer.append(formatter.format(response.getBody()));
    }
  }
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.