public abstract class FolderIcon extends AbstractStatusIcon implements Describable<FolderIcon>, 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.
ExtensionPoint.LegacyInstancesAreScopedToHudson
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getImageOf
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 Describable<FolderIcon>
Copyright © 2016–2020. All rights reserved.