Class HistoryPageEntryDecorator

java.lang.Object
jenkins.widgets.HistoryPageEntryDecorator
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
DescriptionHistoryPageEntryDecorator

public abstract class HistoryPageEntryDecorator extends Object implements ExtensionPoint
Allows plugins to contribute Jelly fragments to the new history entry UI rendered by /hudson/widgets/HistoryWidget/entry-new.jelly.

Implementations may define an entry.jelly view. That view is rendered with HistoryPageEntryDecorator.EntryContext as it.

Each decorator is rendered in its own column, sized to fit its widest entry. When there isn't room for every column, later ones are hidden. Like a flex item, a decorator's content can't shrink below its natural width by default; to let its column shrink rather than be hidden, give the view's root element an explicit CSS min-width, and the column will be shrunk down to that first.

Since:
TODO
  • Constructor Details

    • HistoryPageEntryDecorator

      public HistoryPageEntryDecorator()
  • Method Details

    • isApplicable

      public boolean isApplicable(@NonNull HistoryWidget<?,?> widget, @NonNull HistoricalBuild build)
      Determines whether this decorator should render for the supplied build.
      Parameters:
      widget - the widget rendering the history entry.
      build - the build being rendered.
      Returns:
      true to render this decorator.
    • all

      Returns all registered decorators.
      Returns:
      all registered decorators.