Package io.jenkins.plugins.monitoring
Class DemoPortlet
- java.lang.Object
-
- io.jenkins.plugins.monitoring.MonitorPortlet
-
- io.jenkins.plugins.monitoring.DemoPortlet
-
public class DemoPortlet extends MonitorPortlet
An example ofMonitorPortlet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDemoPortlet.ExampleMonitorFactoryAn example ofMonitorPortletFactory.
-
Constructor Summary
Constructors Constructor Description DemoPortlet(String title, String id)Creates a newDemoPortlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Defines the id for the portlet.intgetPreferredHeight()Defines the preferred height of the portlet.intgetPreferredWidth()Defines the preferred width of the portlet.StringgetTitle()Defines the title to be shown.-
Methods inherited from class io.jenkins.plugins.monitoring.MonitorPortlet
getDetailViewUrl, getIconUrl, isDefault, toString
-
-
-
-
Constructor Detail
-
DemoPortlet
public DemoPortlet(String title, String id)
Creates a newDemoPortlet.- Parameters:
title- the title of the portlet.id- the id of the portlet.
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from class:MonitorPortletDefines the title to be shown.- Specified by:
getTitlein classMonitorPortlet- Returns:
- the title.
-
getId
public String 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.
-
-