Class Util
- java.lang.Object
-
- org.uberfire.ext.widgets.common.client.common.Util
-
public class Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetHeader(com.google.gwt.resources.client.ImageResource image, String text)Get a string representation of the header that includes an image and some text.static com.google.gwt.user.client.ui.HTMLgetHeaderHTML(com.google.gwt.resources.client.ImageResource image, String text)Get a HTML representation of the header that includes an image and some text.static com.google.gwt.safehtml.shared.SafeHtmlgetHeaderSafeHtml(com.google.gwt.resources.client.ImageResource image, String text)Get a SafeHtml representation of the header that includes an image and some text.static StringgetSelfURL()The URL that will be used to open up assets in a feed.static com.google.gwt.safehtml.shared.SafeHtmltoSafeHtml(String html)Convert String to a SafeHtml
-
-
-
Method Detail
-
getHeader
public static String getHeader(com.google.gwt.resources.client.ImageResource image, String text)
Get a string representation of the header that includes an image and some text.- Parameters:
image- theImageResourceto add next to the headertext- the header text- Returns:
- the header as a string
-
getHeaderHTML
public static com.google.gwt.user.client.ui.HTML getHeaderHTML(com.google.gwt.resources.client.ImageResource image, String text)Get a HTML representation of the header that includes an image and some text.- Parameters:
image- theImageResourceto add next to the headertext- the header text- Returns:
- the header as HTML
-
getHeaderSafeHtml
public static com.google.gwt.safehtml.shared.SafeHtml getHeaderSafeHtml(com.google.gwt.resources.client.ImageResource image, String text)Get a SafeHtml representation of the header that includes an image and some text.- Parameters:
image- theImageResourceto add next to the headertext- the header text- Returns:
- the header as SafeHtml
-
getSelfURL
public static String getSelfURL()
The URL that will be used to open up assets in a feed. (by tacking asset id on the end, of course !).
-
toSafeHtml
public static com.google.gwt.safehtml.shared.SafeHtml toSafeHtml(String html)
Convert String to a SafeHtml- Parameters:
html-- Returns:
-
-