本文整理匯總了Java中com.google.gwt.safehtml.shared.SafeHtmlUtils.EMPTY_SAFE_HTML屬性的典型用法代碼示例。如果您正苦於以下問題:Java SafeHtmlUtils.EMPTY_SAFE_HTML屬性的具體用法?Java SafeHtmlUtils.EMPTY_SAFE_HTML怎麽用?Java SafeHtmlUtils.EMPTY_SAFE_HTML使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.google.gwt.safehtml.shared.SafeHtmlUtils
的用法示例。
在下文中一共展示了SafeHtmlUtils.EMPTY_SAFE_HTML屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onLoad
@Override
public void onLoad (PreloadedImage image) {
image.addStyleName("img-rounded");
image.addStyleName("col-xs-" + (int) (12 / IMAGES_PER_ROW));
if ((resources.size() - 1) % IMAGES_PER_ROW == 0) {
currentResourceRow = new HTMLPanel(
SafeHtmlUtils.EMPTY_SAFE_HTML);
currentResourceRow.addStyleName("row");
pnlImagePreviews.add(currentResourceRow);
}
currentResourceRow.add(image);
}
示例2: render
@Override
public void render (Context context, Post value, SafeHtmlBuilder builder) {
SafeUri link = PageTypeHelper.asHref(PageType.PostDetailPageType,
PostHelper.getSlug(value));
SafeHtml published = Templates.INSTANCE.notPublished(DateTimeHelper
.ago(value.created));
if (value.published != null) {
published = Templates.INSTANCE.publishedDate(DateTimeHelper
.ago(value.published));
}
String body = "Empty... :imp:";
if (value.summary != null && value.summary.length() > 0) {
body = value.summary;
} else if (value.content != null && value.content.body != null
&& value.content.body.length() > 0) {
body = value.content.body;
}
SafeHtml author = SafeHtmlUtils.EMPTY_SAFE_HTML;
if (PropertyController.get().booleanProperty(
PropertyHelper.POST_SHOW_AUTHOR, false)) {
author = Templates.INSTANCE
.author(UriUtils.fromString(value.author.avatar + "?s="
+ UserHelper.AVATAR_HEADER_SIZE + "&default=retro"),
UserHelper.handle(value.author));
}
RENDERER.render(builder, link, SafeHtmlUtils
.fromTrustedString(PostHelper.makeHeading2(value.title)),
SafeHtmlUtils.fromTrustedString(PostHelper.makeMarkup(body)),
author, published,
value.listed.booleanValue() ? SafeHtmlUtils.EMPTY_SAFE_HTML
: Templates.INSTANCE.notVisible());
}
示例3: html
@Column(header = "SafeHtml", cellType = CustomSafeHtmlCell.class)
public SafeHtml html()
{
return SafeHtmlUtils.EMPTY_SAFE_HTML;
}