Class Base64Icon

java.lang.Object
com.suncode.pwfl.web.ui.Base64Icon
All Implemented Interfaces:
Icon

@Api public class Base64Icon extends Object implements Icon
Icon Icon encoded with BASE64 (data-url)
Author:
Cezary Kozar 25 sty 2016
  • Constructor Details

    • Base64Icon

      public Base64Icon(String src, com.google.common.net.MediaType mediaType)
  • Method Details

    • getDataUrl

      public String getDataUrl()
      Returns data-url of this icon content e.g. "data:image/png;base64,<BASE64>"
    • getType

      public Icon.Type getType()
      Description copied from interface: Icon
      Return icon type one of Icon.Type (CSS, BASE64).
      Specified by:
      getType in interface Icon