Package hudson.model
Class StockStatusIcon
java.lang.Object
hudson.model.AbstractStatusIcon
hudson.model.StockStatusIcon
- All Implemented Interfaces:
StatusIcon
StatusIcon
for stock icon in Hudson.- Since:
- 1.390.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the human-readable description used as img/@alt.getImageOf
(String size) Returns the URL to the image.
-
Constructor Details
-
StockStatusIcon
- Parameters:
image
- Short file name like "folder.gif" that points to a stock icon in Hudson.description
- Used asgetDescription()
.
-
-
Method Details
-
getImageOf
Description copied from interface:StatusIcon
Returns the URL to the image.- Parameters:
size
- The size specified. Must support "16x16", "24x24", and "32x32" at least. For forward compatibility, if you receive a size that's not supported, consider returning your biggest icon (and let the browser rescale.)- Returns:
- The URL is rendered as is in the img @src attribute, so it must contain the context path, etc.
-
getDescription
Description copied from interface:StatusIcon
Gets the human-readable description used as img/@alt.
-