use of com.google.gwt.safehtml.shared.SafeHtmlBuilder in project activityinfo by bedatadriven.
the class LocationTypeListRenderer method render.
@Override
public SafeHtml render(List<LocationTypeEntry> entries) {
SafeHtmlBuilder html = new SafeHtmlBuilder();
render(entries, html);
return html.toSafeHtml();
}
use of com.google.gwt.safehtml.shared.SafeHtmlBuilder in project activityinfo by bedatadriven.
the class GalleryRenderer method render.
@Override
public SafeHtml render(List<T> models) {
SafeHtmlBuilder builder = new SafeHtmlBuilder();
render(models, builder);
return builder.toSafeHtml();
}
use of com.google.gwt.safehtml.shared.SafeHtmlBuilder in project activityinfo by bedatadriven.
the class ValidationUtils method addMessage.
public static void addMessage(String message, DivElement divContainer) {
final SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
safeHtmlBuilder.appendHtmlConstant(divContainer.getInnerHTML()).appendHtmlConstant("<br/>").append(SafeHtmlUtils.fromString(message));
divContainer.setInnerHTML(safeHtmlBuilder.toSafeHtml().asString());
}
use of com.google.gwt.safehtml.shared.SafeHtmlBuilder in project activityinfo by bedatadriven.
the class ValidationUtils method showMessages.
public static void showMessages(List<String> messages, DivElement divContainer) {
final SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
for (String message : messages) {
safeHtmlBuilder.append(SafeHtmlUtils.fromString(message)).appendHtmlConstant("<br/>");
}
divContainer.setInnerHTML(safeHtmlBuilder.toSafeHtml().asString());
}
use of com.google.gwt.safehtml.shared.SafeHtmlBuilder in project webprotege by protegeproject.
the class ForbiddenViewImpl method setSubMessage.
@Override
public void setSubMessage(@Nonnull String message) {
SafeHtmlBuilder builder = new SafeHtmlBuilder();
builder.appendEscaped(message);
String safeHtml = builder.toSafeHtml().asString();
subMessage.setText(safeHtml);
}
Aggregations