Package org.beangle.model.transfer.excel

Examples of org.beangle.model.transfer.excel.ExcelItemWriter


  public static Writer getWriter(Context context) {
    String format = (String) context.get("format");
    if (format.equals(TransferFormats.XLS) || format.equals("excel")) {
      String template = (String) context.get("template");
      if (StringUtils.isEmpty(template)) {
        return new ExcelItemWriter();
      } else {
        TemplateWriter writer = new ExcelTemplateWriter();
        URL templateURL = ClassLoaderUtil.getResource(template, Exporter.class);
        if (null == templateURL) {
          throw new RuntimeException("Empty template path!");
View Full Code Here


  @Override
  protected Exporter buildExporter(Context context) {
    String codeNameStr = get("codeNames");
    if (null != codeNameStr) {
      MultiEntityExporter exporter = new MultiEntityExporter();
      exporter.setWriter(new ExcelItemWriter());
      return exporter;
    } else {
      return super.buildExporter(context);
    }
  }
View Full Code Here

  @Override
  protected Exporter buildExporter(Context context) {
    String codeNameStr = get("codeNames");
    if (null != codeNameStr) {
      MultiEntityExporter exporter = new MultiEntityExporter();
      exporter.setWriter(new ExcelItemWriter());
      return exporter;
    } else {
      return super.buildExporter(context);
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.model.transfer.excel.ExcelItemWriter

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.