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 Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.StatusIcon
getDescription, getImageOf
-
Constructor Details
-
FolderIcon
public FolderIcon()
-
-
Method Details
-
setOwner
Called 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 interfaceIconSpec
-
iconClassNameImageOf
-
setFolder
Deprecated.- Parameters:
folder- the folder.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<FolderIcon>
-
setOwner(AbstractFolder)