Class SvgTag

java.lang.Object
io.jenkins.plugins.fontawesome.SvgTag

public class SvgTag extends Object
Textual SVG tag representation that shows a FontAwesome icon.
Author:
Ullrich Hafner
  • Constructor Details Link icon

    • SvgTag Link icon

      public SvgTag(String iconName)
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome using SvgTag.FontAwesomeStyle.SOLID.
      Parameters:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
    • SvgTag Link icon

      public SvgTag(String iconName, SvgTag.FontAwesomeStyle style)
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome.
      Parameters:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
      style - Font Awesome style of the icon
  • Method Details Link icon

    • fontAwesomeSvgIcon Link icon

      public static SvgTag fontAwesomeSvgIcon(String iconName)
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome using SvgTag.FontAwesomeStyle.SOLID.
      Parameters:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
      Returns:
      the HTML tag
    • fontAwesomeSvgIcon Link icon

      public static SvgTag fontAwesomeSvgIcon(String iconName, SvgTag.FontAwesomeStyle style)
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome.
      Parameters:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
      style - Font Awesome style of the icon
      Returns:
      the HTML tag
    • withClasses Link icon

      public SvgTag withClasses(String... classNames)
      Uses the specified class names for this SVG tag. Adds the tag ICON_MD as well as class.
      Parameters:
      classNames - the additional class names, might be empty
      Returns:
      this tag
    • render Link icon

      public String render()
      Renders this tag into plain HTML String representation.
      Returns:
      the tag as HTML String
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object