List of usage examples for com.vaadin.v7.ui.renderers HtmlRenderer HtmlRenderer
public HtmlRenderer(String nullRepresentation)
From source file:de.symeda.sormas.ui.reports.WeeklyReportInformantsGrid.java
License:Open Source License
public WeeklyReportInformantsGrid(UserReferenceDto officerRef, EpiWeek epiWeek) { this.officerRef = officerRef; this.epiWeek = epiWeek; setSizeFull();//w ww . j a v a 2 s . co m setSelectionMode(SelectionMode.NONE); BeanItemContainer<WeeklyReportInformantSummary> container = new BeanItemContainer<WeeklyReportInformantSummary>( WeeklyReportInformantSummary.class); setContainerDataSource(container); setColumns(WeeklyReportInformantSummary.INFORMANT, WeeklyReportInformantSummary.COMMUNITY, WeeklyReportInformantSummary.FACILITY, WeeklyReportInformantSummary.INFORMANT_REPORT_DATE, WeeklyReportInformantSummary.TOTAL_CASE_COUNT); for (Column column : getColumns()) { column.setHeaderCaption(I18nProperties.getPrefixCaption(WeeklyReportInformantSummary.I18N_PREFIX, column.getPropertyId().toString(), column.getHeaderCaption())); } getColumn(WeeklyReportInformantSummary.INFORMANT_REPORT_DATE) .setRenderer(new HtmlRenderer(I18nProperties.getCaption(Captions.weeklyReportNoReport))); setCellStyleGenerator(new WeeklyReportGridCellStyleGenerator()); reload(); }