Package hudson.widgets
Class BuildHistoryWidget<T>
- java.lang.Object
-
- hudson.widgets.Widget
-
- hudson.widgets.HistoryWidget<Queue.Task,T>
-
- hudson.widgets.BuildHistoryWidget<T>
-
- All Implemented Interfaces:
ExtensionPoint
public class BuildHistoryWidget<T> extends HistoryWidget<Queue.Task,T>
Displays the build history on the side panel.This widget enhances
HistoryWidget
by groking the notion thatHistoryWidget.owner
can be in the queue toward the next build.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.widgets.HistoryWidget
HistoryWidget.Adapter<T>
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.widgets.HistoryWidget
adapter, baseList, baseUrl, owner
-
-
Constructor Summary
Constructors Constructor Description BuildHistoryWidget(Queue.Task owner, Iterable<T> baseList, HistoryWidget.Adapter<? super T> adapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoryPageFilter
getHistoryPageFilter()
Get aHistoryPageFilter
for rendering a page of queue items.Queue.Item
getQueuedItem()
Returns the first queue item if the owner is scheduled for execution in the queue.List<Queue.Item>
getQueuedItems()
Returns the queue item if the owner is scheduled for execution in the queue, in REVERSE ORDER-
Methods inherited from class hudson.widgets.HistoryWidget
doAjax, getDisplayName, getFirstTransientBuildKey, getNextBuildNumberToFetch, getRenderList, getUrlName, isTrimmed, newPageFilter, setNextBuildNumberToFetch, setTrimmed, updateFirstTransientBuildKey
-
-
-
-
Constructor Detail
-
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 Detail
-
getQueuedItem
public Queue.Item getQueuedItem()
Returns the first queue item if the owner is scheduled for execution in the queue.
-
getQueuedItems
public List<Queue.Item> getQueuedItems()
Returns the queue item if the owner is scheduled for execution in the queue, in REVERSE ORDER
-
getHistoryPageFilter
public HistoryPageFilter getHistoryPageFilter()
Description copied from class:HistoryWidget
Get aHistoryPageFilter
for rendering a page of queue items.- Overrides:
getHistoryPageFilter
in classHistoryWidget<Queue.Task,T>
-
-