Klasse SvgTag

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

@Deprecated public class SvgTag extends Object
Veraltet.
use Symbol instead
Textual SVG tag representation that shows a FontAwesome icon.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • SvgTag

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

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

      @Deprecated public SvgTag(String iconName, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade)
      Veraltet.
      use SvgTag(String) instead
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome.
      Parameter:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
      jenkinsFacade - Jenkins facade to replaced with a stub during unit tests
    • SvgTag

      @Deprecated public SvgTag(String iconName, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade, SvgTag.FontAwesomeStyle style)
      Veraltet.
      Creates a new SvgTag that renders the specified SVG icon of FontAwesome.
      Parameter:
      iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.
      jenkinsFacade - Jenkins facade to replaced with a stub during unit tests
      style - Font Awesome style of the icon
  • Methodendetails

    • fontAwesomeSvgIcon

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

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

      public SvgTag withClasses(String... classNames)
      Veraltet.
      Uses the specified class names for this SVG tag. Adds the tag svg-icon as well as class.
      Parameter:
      classNames - the additional class names, might be empty
      Gibt zurück:
      this tag
    • render

      public String render()
      Veraltet.
      Renders this tag into plain HTML String representation.
      Gibt zurück:
      the tag as HTML String