Search in sources :

Example 1 with RecordHistoryEntry

use of org.activityinfo.model.form.RecordHistoryEntry in project activityinfo by bedatadriven.

the class SiteHistoryTab method render.

private void render(SiteDTO site, List<RecordHistoryEntry> entries) {
    SafeHtmlBuilder html = new SafeHtmlBuilder();
    if (site.getDateCreated().before(HISTORY_AVAILABLE_FROM)) {
        appendItemSpan(html, I18N.MESSAGES.siteHistoryDateCreated(site.getDateCreated()));
        html.appendHtmlConstant("<br>");
        html.appendEscaped(I18N.MESSAGES.siteHistoryAvailableFrom(HISTORY_AVAILABLE_FROM));
    }
    for (RecordHistoryEntry entry : entries) {
        appendTo(entry, html);
    }
    content.setHtml(html.toSafeHtml());
}
Also used : RecordHistoryEntry(org.activityinfo.model.form.RecordHistoryEntry) SafeHtmlBuilder(com.google.gwt.safehtml.shared.SafeHtmlBuilder)

Aggregations

SafeHtmlBuilder (com.google.gwt.safehtml.shared.SafeHtmlBuilder)1 RecordHistoryEntry (org.activityinfo.model.form.RecordHistoryEntry)1