Package jenkins.plugins.foldericon
Class CustomFolderIcon
java.lang.Object
hudson.model.AbstractStatusIcon
com.cloudbees.hudson.plugins.folder.FolderIcon
jenkins.plugins.foldericon.CustomFolderIcon
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.FolderIcon>
,StatusIcon
,IconSpec
public class CustomFolderIcon
extends com.cloudbees.hudson.plugins.folder.FolderIcon
A Custom Folder Icon.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Item Listener to clean up unused icons when the folder is deleted.static class
The Descriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all icons that are currently available.getImageOf
(String size) protected void
setOwner
(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) Methods inherited from class com.cloudbees.hudson.plugins.folder.FolderIcon
getIconClassName, iconClassNameImageOf, setFolder
-
Constructor Details
-
CustomFolderIcon
Ctor.- Parameters:
foldericon
- the icon to use
-
-
Method Details
-
getAvailableIcons
Get all icons that are currently available.- Returns:
- all the icons that have been uploaded, sorted descending by
FilePath.lastModified()
.
-
setOwner
protected void setOwner(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder) - Overrides:
setOwner
in classcom.cloudbees.hudson.plugins.folder.FolderIcon
-
getFoldericon
- Returns:
- the foldericon.
-
getImageOf
-
getDescription
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<com.cloudbees.hudson.plugins.folder.FolderIcon>
- Overrides:
getDescriptor
in classcom.cloudbees.hudson.plugins.folder.FolderIcon
-