Package hudson.widgets
Class BuildHistoryWidget<T>
- Type Parameters:
T- typicallyHistoricalBuild
Displays the build history on the side panel.
This widget enhances HistoryWidget by groking the notion
that HistoryWidget.owner can be in the queue toward the next build.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.widgets.HistoryWidget
HistoryWidget.Adapter<T> -
Field Summary
Fields inherited from class hudson.widgets.HistoryWidget
adapter, baseList, baseUrl, DISPLAY_NAME, owner -
Constructor Summary
ConstructorsConstructorDescriptionBuildHistoryWidget(Queue.Task owner, Iterable<T> baseList, HistoryWidget.Adapter<? super T> adapter) -
Method Summary
Modifier and TypeMethodDescriptionGet aHistoryPageFilterfor rendering a page of queue items.Returns the first queue item if the owner is scheduled for execution in the queue.Returns the queue item if the owner is scheduled for execution in the queue, in REVERSE ORDERMethods inherited from class hudson.widgets.HistoryWidget
doAjax, getDisplayName, getFirstTransientBuildKey, getNextBuildNumberToFetch, getOwnerUrl, getRenderList, getUrlName, isTrimmed, newPageFilter, setNextBuildNumberToFetch, setTrimmed, updateFirstTransientBuildKey
-
Constructor Details
-
BuildHistoryWidget
public BuildHistoryWidget(Queue.Task owner, Iterable<T> baseList, HistoryWidget.Adapter<? super T> adapter) - Parameters:
owner- The parent model object that owns this widget.
-
-
Method Details
-
getQueuedItem
Returns the first queue item if the owner is scheduled for execution in the queue. -
getQueuedItems
Returns the queue item if the owner is scheduled for execution in the queue, in REVERSE ORDER -
getHistoryPageFilter
Description copied from class:HistoryWidgetGet aHistoryPageFilterfor rendering a page of queue items.- Overrides:
getHistoryPageFilterin classHistoryWidget<Queue.Task,T>
-