Package jenkins.widgets
Class HistoryPageEntryDecorator
java.lang.Object
jenkins.widgets.HistoryPageEntryDecorator
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
DescriptionHistoryPageEntryDecorator
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContext exposed toentry.jelly.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Returns all registered decorators.booleanisApplicable(HistoryWidget<?, ?> widget, HistoricalBuild build) Determines whether this decorator should render for the supplied build.
-
Constructor Details
-
HistoryPageEntryDecorator
public HistoryPageEntryDecorator()
-
-
Method Details
-
isApplicable
Determines whether this decorator should render for the supplied build.- Parameters:
widget- the widget rendering the history entry.build- the build being rendered.- Returns:
trueto render this decorator.
-
all
Returns all registered decorators.- Returns:
- all registered decorators.
-