Package com.vaadin.copilot.iconset
Class IconAndSetClassNameInfo
java.lang.Object
com.vaadin.copilot.iconset.IconAndSetClassNameInfo
Holds resolved icon metadata together with the Java class name of the icon
set that defines it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the icon attribute value.Gets the fully qualified Java class name of the icon set.getName()Gets the icon name.Gets the SVG source URL for the icon.booleanisSvg()Checks whether the icon was resolved from an SVG source URL.voidsetIconAttr(String iconAttr) Sets the icon attribute value.voidsetIconSetQualifiedJavaClassName(String iconSetQualifiedJavaClassName) Sets the fully qualified Java class name of the icon set.voidSets the icon name.voidsetSvg(boolean svg) Sets whether the icon was resolved from an SVG source URL.voidsetSvgSourceUrl(String svgSourceUrl) Sets the SVG source URL for the icon.
-
Constructor Details
-
IconAndSetClassNameInfo
public IconAndSetClassNameInfo()
-
-
Method Details
-
getIconSetQualifiedJavaClassName
Gets the fully qualified Java class name of the icon set.- Returns:
- the icon set class name
-
setIconSetQualifiedJavaClassName
Sets the fully qualified Java class name of the icon set.- Parameters:
iconSetQualifiedJavaClassName- the icon set class name
-
getSvgSourceUrl
Gets the SVG source URL for the icon.- Returns:
- the SVG source URL, or
nullif the icon is not resolved by URL
-
setSvgSourceUrl
Sets the SVG source URL for the icon.- Parameters:
svgSourceUrl- the SVG source URL
-
getName
Gets the icon name.- Returns:
- the icon name
-
setName
Sets the icon name.- Parameters:
name- the icon name
-
isSvg
public boolean isSvg()Checks whether the icon was resolved from an SVG source URL.- Returns:
trueif the icon was matched by SVG URL,falseotherwise
-
setSvg
public void setSvg(boolean svg) Sets whether the icon was resolved from an SVG source URL.- Parameters:
svg-trueif the icon was matched by SVG URL
-
getIconAttr
Gets the icon attribute value.- Returns:
- the icon attribute value, or
nullif not applicable
-
setIconAttr
Sets the icon attribute value.- Parameters:
iconAttr- the icon attribute value
-