Package org.projectforge.renderer

Examples of org.projectforge.renderer.RowHolder


      durationSum += timesheet.getDuration();
    }

    final List<RowHolder> list = new ArrayList<RowHolder>();
    for (final TimesheetDO timesheet : timeSheets) {
      final RowHolder row = new RowHolder();
      if (actionFilter.getUserId() != null) {
        final Kost2DO kost2 = kostCache.getKost2(timesheet.getKost2Id());
        if (kost2 != null) {
          row.addCell(new CellHolder(KostFormatter.format(kost2)));
        } else {
          row.addCell(new CellHolder(""));
        }
      } else {
        row.addCell(new CellHolder(userFormatter.getFormattedUser(timesheet.getUser())));
      }
      final String taskPath = taskFormatter.getTaskPath(timesheet.getTaskId(), taskId, true, OutputType.PLAIN);
      row.addCell(new CellHolder(htmlHelper.formatXSLFOText(taskPath, true)));
      row.addCell(new CellHolder(dateTimeFormatter.getFormattedTimePeriod(timesheet.getTimePeriod(), RenderType.FOP, true)));
      row.addCell(new CellHolder(dateTimeFormatter.getFormattedDuration(timesheet.getTimePeriod())));
      row.addCell(new CellHolder(htmlHelper.formatXSLFOText(timesheet.getDescription(), true)));
      if (StringUtils.isNotBlank(timesheet.getLocation()) == true) {
        row.addCell(new CellHolder(htmlHelper.formatXSLFOText(timesheet.getLocation(), true)));
      } else {
        row.addCell(new CellHolder(""));
      }
      list.add(row);
    }

    data.put("list", list);
View Full Code Here

TOP

Related Classes of org.projectforge.renderer.RowHolder

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.