/** * @see org.projectforge.web.wicket.CellItemListenerPropertyColumn#populateItem(org.apache.wicket.markup.repeater.Item, * java.lang.String, org.apache.wicket.model.IModel) */ @Override public void populateItem(final Item<ICellPopulator<GanttChartDO>> item, final String componentId, final IModel<GanttChartDO> rowModel) { final GanttChartDO ganttChart = rowModel.getObject(); item.add(new ListSelectActionPanel(componentId, rowModel, GanttChartEditPage.class, ganttChart.getId(), GanttChartListPage.this, ganttChart.getName())); cellItemListener.populateItem(item, componentId, rowModel); addRowClick(item); } });
imageFormat = ImageFormat.PNG; final String filename = FileHelper.createSafeFilename(getData().getName(), suffix, 50, true); final byte[] content; if (imageFormat != null) {
private GanttChart createGanttChart() { if (ganttChartData == null) { return null; } ganttChartData.getRootObject().sortChildren(); final GanttChart ganttChart = new GanttChart(ganttChartData.getRootObject(), getGanttChartStyle(), getSettings(), getData().getName()); // chart.getRootObject().recalculate(); return ganttChart; }
public GanttChartEditForm(final GanttChartEditPage parentPage, final GanttChartDO data) { super(parentPage, data); if (isNew() == true) { if (data.getOwner() == null) { data.setOwner(ThreadLocalUserContext.getUser()); } if (StringUtils.isEmpty(data.getName()) == true) { data.setName("MyChart"); } } if (data.getReadAccess() == null) { data.setReadAccess(GanttAccess.OWNER); } if (data.getWriteAccess() == null) { data.setWriteAccess(GanttAccess.OWNER); } }