Class IconLabelProvider
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
-
- io.jenkins.plugins.analysis.core.model.IconLabelProvider
-
- All Implemented Interfaces:
DescriptionProvider
public class IconLabelProvider extends StaticAnalysisLabelProvider
Provides icons that have the same name as the URL (or ID) of a tool.- Author:
- Ullrich Hafner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
StaticAnalysisLabelProvider.AgeBuilder, StaticAnalysisLabelProvider.DefaultAgeBuilder
-
-
Field Summary
-
Fields inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
EMPTY_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description IconLabelProvider(String id, String name)
Creates a new label provider with the specified ID and name.IconLabelProvider(String id, String name, DescriptionProvider descriptionProvider)
Creates a new label provider with the specified ID and name.IconLabelProvider(String id, String name, DescriptionProvider descriptionProvider, String iconName)
Creates a new label provider with the specified ID and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLargeIconUrl()
Returns the absolute URL to the large icon for the tool.String
getSmallIconUrl()
Returns the absolute URL to the small icon for the tool.-
Methods inherited from class io.jenkins.plugins.analysis.core.model.StaticAnalysisLabelProvider
getAgeBuilder, getDescription, getFileNameRenderer, getFixedIssuesLabel, getId, getIssuesModel, getLinkName, getName, getNewIssuesLabel, getNoIssuesSinceLabel, getQualityGateResult, getQualityGateResult, getRawLinkName, getReferenceBuild, getSourceCodeDescription, getTitle, getToolTip, getTrendName, setName, toString
-
-
-
-
Constructor Detail
-
IconLabelProvider
public IconLabelProvider(String id, String name)
Creates a new label provider with the specified ID and name.- Parameters:
id
- the ID (i.e., URL)name
- the name of the tool
-
IconLabelProvider
public IconLabelProvider(String id, String name, DescriptionProvider descriptionProvider)
Creates a new label provider with the specified ID and name.- Parameters:
id
- the ID (i.e., URL)name
- the name of the tooldescriptionProvider
- provides additional descriptions for an issue
-
IconLabelProvider
public IconLabelProvider(String id, String name, DescriptionProvider descriptionProvider, String iconName)
Creates a new label provider with the specified ID and name.- Parameters:
id
- the ID (i.e., URL)name
- the name of the tooldescriptionProvider
- provides additional descriptions for an issueiconName
- the the unique name of the icon file
-
-
Method Detail
-
getSmallIconUrl
public String getSmallIconUrl()
Description copied from class:StaticAnalysisLabelProvider
Returns the absolute URL to the small icon for the tool.- Overrides:
getSmallIconUrl
in classStaticAnalysisLabelProvider
- Returns:
- absolute URL
-
getLargeIconUrl
public String getLargeIconUrl()
Description copied from class:StaticAnalysisLabelProvider
Returns the absolute URL to the large icon for the tool.- Overrides:
getLargeIconUrl
in classStaticAnalysisLabelProvider
- Returns:
- absolute URL
-
-