|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.widgets.Widget
hudson.widgets.HistoryWidget<O,T>
O - Owner of the widget.T - Type individual record.public class HistoryWidget<O extends ModelObject,T>
Displays the history of records (normally Runs) on the side panel.
| Nested Class Summary | |
|---|---|
static interface |
HistoryWidget.Adapter<T>
|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
HistoryWidget.Adapter<? super T> |
adapter
|
Iterable<T> |
baseList
The given data model of records. |
String |
baseUrl
URL of the owner. |
O |
owner
|
| Constructor Summary | |
|---|---|
HistoryWidget(O owner,
Iterable<T> baseList,
HistoryWidget.Adapter<? super T> adapter)
|
|
| Method Summary | |
|---|---|
void |
doAjax(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String n)
Handles AJAX requests from browsers to update build history. |
String |
getDisplayName()
Title of the widget. |
String |
getFirstTransientBuildKey()
|
String |
getNextBuildNumberToFetch()
|
Iterable<T> |
getRenderList()
The records to be rendered this time. |
String |
getUrlName()
Gets the URL path name. |
boolean |
isTrimmed()
|
void |
setNextBuildNumberToFetch(String nextBuildNumberToFetch)
|
void |
setTrimmed(boolean trimmed)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Iterable<T> baseList
public final String baseUrl
owner.
public final O extends ModelObject owner
public final HistoryWidget.Adapter<? super T> adapter
| Constructor Detail |
|---|
public HistoryWidget(O owner,
Iterable<T> baseList,
HistoryWidget.Adapter<? super T> adapter)
owner - The parent model object that owns this widget.| Method Detail |
|---|
public String getDisplayName()
public String getUrlName()
WidgetFor example, if this method returns "xyz", and if the parent object (that this widget is associated with) is bound to /foo/bar/zot, then this widget object will be exposed to /foo/bar/zot/xyz.
This method is useful when the widget needs to expose additional URLs, for example for serving AJAX requests.
This method should return a string that's unique among other Widgets.
The default implementation returns the unqualified class name.
getUrlName in class Widgetpublic String getFirstTransientBuildKey()
public Iterable<T> getRenderList()
public boolean isTrimmed()
public void setTrimmed(boolean trimmed)
public void doAjax(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@Header(value="n")
String n)
throws IOException,
javax.servlet.ServletException
n - The build 'number' to fetch. This is string because various variants
uses non-numbers as the build key.
IOException
javax.servlet.ServletExceptionpublic String getNextBuildNumberToFetch()
public void setNextBuildNumberToFetch(String nextBuildNumberToFetch)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||