Class AbstractBadgeAction
java.lang.Object
com.jenkinsci.plugins.badge.action.AbstractBadgeAction
- All Implemented Interfaces:
Action,ModelObject,Serializable
- Direct Known Subclasses:
BadgeAction,BadgeSummaryAction
@ExportedBean(defaultVisibility=2)
public abstract class AbstractBadgeAction
extends Object
implements Action, Serializable
An abstract action providing an id amongst other fields to build a badge.
Most of the implementation resides in this class in order to be shared with badges and summaries.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBadgeAction(String id, String icon, String text, String cssClass, String style, String link) Deprecated, for removal: This API element is subject to removal in a future version.protectedAbstractBadgeAction(String id, String icon, String text, String cssClass, String style, String link, String target) Ctor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName
-
Constructor Details
-
AbstractBadgeAction
@Deprecated(since="2.8", forRemoval=true) protected AbstractBadgeAction(String id, String icon, String text, String cssClass, String style, String link) Deprecated, for removal: This API element is subject to removal in a future version.Ctor.- Parameters:
id- the id for a badge. if null, a random uuid will be generated.icon- the icon for a badge.text- the text for a badge.cssClass- the css class for a badge.style- the css style for a badge.link- the link for a badge.
-
AbstractBadgeAction
protected AbstractBadgeAction(String id, String icon, String text, String cssClass, String style, String link, String target) Ctor.- Parameters:
id- the id for a badge. if null, a random uuid will be generated.icon- the icon for a badge.text- the text for a badge.cssClass- the css class for a badge.style- the css style for a badge.link- the link for a badge.target- the link target for a badge.
-
-
Method Details
-
getId
-
setIcon
-
getIcon
-
setText
-
getText
-
setCssClass
-
getCssClass
-
setStyle
-
getStyle
-
setLink
-
getLink
-
setTarget
-
getTarget
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
AbstractBadgeAction(String, String, String, String, String, String, String)instead.