Class FolderIcon
java.lang.Object
hudson.model.AbstractStatusIcon
com.cloudbees.hudson.plugins.folder.FolderIcon
- All Implemented Interfaces:
- ExtensionPoint,- Describable<FolderIcon>,- StatusIcon,- IconSpec
- Direct Known Subclasses:
- StockFolderIcon
public abstract class FolderIcon
extends AbstractStatusIcon
implements Describable<FolderIcon>, ExtensionPoint, IconSpec
Renders 
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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringiconClassNameImageOf(String size) protected voidDeprecated.protected voidsetOwner(AbstractFolder<?> folder) Called byAbstractFolderto set the owner that this icon is used for.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.StatusIcongetDescription, getImageOf
- 
Constructor Details- 
FolderIconpublic FolderIcon()
 
- 
- 
Method Details- 
setOwnerCalled byAbstractFolderto set the owner that this icon is used for.If you are implementing FolderIconthat changes the behaviour based on the contents/properties of the folder, store the folder object to a field and use that.- Parameters:
- folder- the folder.
 
- 
getIconClassName- Specified by:
- getIconClassNamein interface- IconSpec
 
- 
iconClassNameImageOf
- 
setFolderDeprecated.- Parameters:
- folder- the folder.
 
- 
getDescriptor- Specified by:
- getDescriptorin interface- Describable<FolderIcon>
 
 
- 
setOwner(AbstractFolder)