public abstract class FolderIcon extends hudson.model.AbstractStatusIcon implements hudson.model.Describable<FolderIcon>, hudson.ExtensionPoint, org.jenkins.ui.icon.IconSpec
StatusIcon for a folder.
Possible subtypes can range from dumb icons that always render the same thing to smarter icons that change its icon based on the properties/contents of the folder.
| Constructor and Description |
|---|
FolderIcon() |
| Modifier and Type | Method and Description |
|---|---|
FolderIconDescriptor |
getDescriptor() |
String |
getIconClassName() |
protected String |
iconClassNameImageOf(String size) |
protected void |
setFolder(Folder folder)
Deprecated.
|
protected void |
setOwner(AbstractFolder<?> folder)
Called by
AbstractFolder to set the owner that this icon is used for. |
protected void setOwner(AbstractFolder<?> folder)
AbstractFolder to set the owner that this icon is used for.
If you are implementing FolderIcon that changes the behaviour based on the contents/properties
of the folder, store the folder object to a field and use that.
folder - the folder.public String getIconClassName()
getIconClassName in interface org.jenkins.ui.icon.IconSpec@Deprecated protected void setFolder(Folder folder)
setOwner(AbstractFolder)folder - the folder.public FolderIconDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<FolderIcon>Copyright © 2016–2017. All rights reserved.