List of usage examples for com.google.gwt.safehtml.shared SafeHtmlBuilder append
public SafeHtmlBuilder append(SafeHtml html)
From source file:gov.wa.wsdot.mobile.client.activities.borderwait.BorderWaitCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), AppBundle.INSTANCE.css().cellDetails2(), SafeHtmlUtils.htmlEscape(getDisplayString(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model)), getDisplayWaitTime(model)); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.activities.camera.CameraCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { safeHtmlBuilder.append(TEMPLATE.content(AppBundle.INSTANCE.css().cameraImage(), AppBundle.INSTANCE.css().img(), SafeHtmlUtils.htmlEscape(getUrl(model)))); }
From source file:gov.wa.wsdot.mobile.client.activities.camera.VideoCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { safeHtmlBuilder.append(TEMPLATE.content(AppBundle.INSTANCE.css().cameraImage(), SafeHtmlUtils.htmlEscape(getUrl(model)), SafeHtmlUtils.htmlEscape(getVideoUrl(model)))); }
From source file:gov.wa.wsdot.mobile.client.activities.socialmedia.twitter.TwitterCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cameraImage(), AppBundle.INSTANCE.css().img(), SafeHtmlUtils.htmlEscape(getMediaUrl(model)), AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), AppBundle.INSTANCE.css().cellDetails(), SafeHtmlUtils.htmlEscape(getDisplayString(model)), SafeHtmlUtils.fromTrustedString(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); SafeHtml contentNoCameraImage = TEMPLATE.content(AppBundle.INSTANCE.css().cameraImageHidden(), AppBundle.INSTANCE.css().img(), SafeHtmlUtils.htmlEscape(getMediaUrl(model)), AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), AppBundle.INSTANCE.css().cellDetails(), SafeHtmlUtils.htmlEscape(getDisplayString(model)), SafeHtmlUtils.fromTrustedString(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); if (getMediaUrl(model) != "") { safeHtmlBuilder.append(content); } else {//w ww .j a v a 2 s. co m safeHtmlBuilder.append(contentNoCameraImage); } }
From source file:gov.wa.wsdot.mobile.client.activities.trafficmap.menu.traveltimes.TravelTimesCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellTravelTimes(), SafeHtmlUtils.htmlEscape(getDisplayTitle(model)), SafeHtmlUtils.htmlEscape(getDisplayDistanceAverageTime(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model)), SafeHtmlUtils.htmlEscape(getDisplayCurrentTimeColor(model)), SafeHtmlUtils.htmlEscape(getDisplayCurrentTime(model))); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.widget.CellDetailsWithIcon.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), AppBundle.INSTANCE.css().cellDetails(), SafeHtmlUtils.htmlEscape(getDisplayString(model)), SafeHtmlUtils.htmlEscape(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.widget.CellDetailsWithPhoto.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), AppBundle.INSTANCE.css().cellDetails(), SafeHtmlUtils.htmlEscape(getDisplayString(model)), SafeHtmlUtils.htmlEscape(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.widget.CellWithIcon.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellImage(), getDisplayImage(model), SafeHtmlUtils.htmlEscape(getDisplayString(model))); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.widget.SimpleListItem.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellDetails3(), SafeHtmlUtils.fromTrustedString(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); safeHtmlBuilder.append(content); }
From source file:gov.wa.wsdot.mobile.client.widget.TitleDescLastUpdatedCell.java
License:Open Source License
@Override public void render(SafeHtmlBuilder safeHtmlBuilder, final T model) { SafeHtml content = TEMPLATE.content(AppBundle.INSTANCE.css().cellDetails3(), SafeHtmlUtils.fromTrustedString(getDisplayTitle(model)), SafeHtmlUtils.fromTrustedString(getDisplayDescription(model)), SafeHtmlUtils.htmlEscape(getDisplayLastUpdated(model))); safeHtmlBuilder.append(content); }