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 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

      @Exported @NonNull public String getId()
    • setIcon

      public void setIcon(String icon)
    • getIcon

      @Exported public String getIcon()
    • setText

      public void setText(String text)
    • getText

      @Exported public String getText()
    • setCssClass

      public void setCssClass(String cssClass)
    • getCssClass

      @Exported public String getCssClass()
    • setStyle

      public void setStyle(String style)
    • getStyle

      @Exported public String getStyle()
    • setLink

      public void setLink(String link)
    • getLink

      @Exported public String getLink()
    • setTarget

      public void setTarget(String target)
    • getTarget

      @Exported public String getTarget()
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action