Package io.jenkins.plugins.monitoring
Class DemoPortlet
java.lang.Object
io.jenkins.plugins.monitoring.MonitorPortlet
io.jenkins.plugins.monitoring.DemoPortlet
An example of
MonitorPortlet.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.jenkins.plugins.monitoring.MonitorPortlet
getDetailViewUrl, getIconUrl, isDefault, toString
-
Constructor Details
-
DemoPortlet
Creates a newDemoPortlet.- Parameters:
title- the title of the portlet.id- the id of the portlet.
-
-
Method Details
-
getTitle
Description copied from class:MonitorPortletDefines the title to be shown.- Specified by:
getTitlein classMonitorPortlet- Returns:
- the title.
-
getId
Description copied from class:MonitorPortletDefines the id for the portlet.- Specified by:
getIdin classMonitorPortlet- Returns:
- the id.
-
getPreferredWidth
public int getPreferredWidth()Description copied from class:MonitorPortletDefines the preferred width of the portlet.- Specified by:
getPreferredWidthin classMonitorPortlet- Returns:
- the width in pixels.
-
getPreferredHeight
public int getPreferredHeight()Description copied from class:MonitorPortletDefines the preferred height of the portlet.- Specified by:
getPreferredHeightin classMonitorPortlet- Returns:
- the height in pixels.
-