Package io.jenkins.plugins.fontawesome
Class SvgTag
java.lang.Object
io.jenkins.plugins.fontawesome.SvgTag
Textual SVG tag representation that shows a FontAwesome icon.
- Author:
- Ullrich Hafner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Available Font Awesome styles. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSvgTag
that renders the specified SVG icon of FontAwesome usingSvgTag.FontAwesomeStyle.SOLID
.SvgTag
(String iconName, SvgTag.FontAwesomeStyle style) Creates a newSvgTag
that renders the specified SVG icon of FontAwesome. -
Method Summary
Modifier and TypeMethodDescriptionstatic SvgTag
fontAwesomeSvgIcon
(String iconName) Creates a newSvgTag
that renders the specified SVG icon of FontAwesome usingSvgTag.FontAwesomeStyle.SOLID
.static SvgTag
fontAwesomeSvgIcon
(String iconName, SvgTag.FontAwesomeStyle style) Creates a newSvgTag
that renders the specified SVG icon of FontAwesome.render()
Renders this tag into plain HTML String representation.toString()
withClasses
(String... classNames) Uses the specified class names for this SVG tag.
-
Constructor Details
-
SvgTag
Creates a newSvgTag
that renders the specified SVG icon of FontAwesome usingSvgTag.FontAwesomeStyle.SOLID
.- Parameters:
iconName
- the name of the icon (without fa- prefix), e.g.chevron-circle-up
.
-
SvgTag
Creates a newSvgTag
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
-
fontAwesomeSvgIcon
Creates a newSvgTag
that renders the specified SVG icon of FontAwesome usingSvgTag.FontAwesomeStyle.SOLID
.- Parameters:
iconName
- the name of the icon (without fa- prefix), e.g.chevron-circle-up
.- Returns:
- the HTML tag
-
fontAwesomeSvgIcon
Creates a newSvgTag
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
Uses the specified class names for this SVG tag. Adds the tagICON_MD
as well as class.- Parameters:
classNames
- the additional class names, might be empty- Returns:
- this tag
-
render
Renders this tag into plain HTML String representation.- Returns:
- the tag as HTML String
-
toString
-