Class 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 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.
      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.
      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.
      static String getSelfURL()
      The URL that will be used to open up assets in a feed.
      static com.google.gwt.safehtml.shared.SafeHtml toSafeHtml​(String html)
      Convert String to a SafeHtml
    • Constructor Detail

      • Util

        public Util()
    • 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 - the ImageResource to add next to the header
        text - 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 - the ImageResource to add next to the header
        text - 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 - the ImageResource to add next to the header
        text - 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: