public final class StockStatusIcon extends AbstractStatusIcon
StatusIcon
for stock icon in Hudson.Constructor and Description |
---|
StockStatusIcon(String image,
org.jvnet.localizer.Localizable description) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the human-readable description used as img/@alt.
|
String |
getImageOf(String size)
Returns the URL to the image.
|
public StockStatusIcon(String image, org.jvnet.localizer.Localizable description)
image
- Short file name like "folder.gif" that points to a stock icon in Hudson.description
- Used as getDescription()
.public String getImageOf(String size)
StatusIcon
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.)public String getDescription()
StatusIcon
Copyright © 2016. All rights reserved.