hudson.widgets
Class BuildHistoryWidget<T>

java.lang.Object
  extended by hudson.widgets.Widget
      extended by hudson.widgets.HistoryWidget<Queue.Task,T>
          extended by 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 that HistoryWidget.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
BuildHistoryWidget(Queue.Task owner, Iterable<T> baseList, HistoryWidget.Adapter<? super T> adapter)
           
 
Method Summary
 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, setNextBuildNumberToFetch, setTrimmed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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



Copyright © 2004-2013. All Rights Reserved.