Package jenkins.widgets
Interface HasWidgets
-
- All Known Implementing Classes:
AbstractCloudComputer,AbstractProject,AllView,Computer,ComputerSet,FreeStyleProject,Hudson.MasterComputer,Jenkins.MasterComputer,Job,ListView,MyView,Project,ProxyView,SlaveComputer,View,ViewJob
@StaplerAccessibleType public interface HasWidgetsClasses implementing this interface can have widgets, and they can be accessed using relative urls "widget/widgetName"- Since:
- 2.410
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default WidgetgetWidget(String name)Returns the named widget, ornullif it does not exist.default List<Widget>getWidgets()
-
-
-
Field Detail
-
LOGGER
static final Logger LOGGER
-
-
Method Detail
-
getWidget
@CheckForNull @StaplerDispatchable default Widget getWidget(String name)
Returns the named widget, ornullif it does not exist. Defaults to iterating on widgets and filtering based on the definedurlName.- Parameters:
name- the name of the widget within the current context.- Returns:
- the named widget, or
nullif it does not exist.
-
-