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 class
DemoPortlet.ExampleMonitorFactory
An 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 String
getId()
Defines the id for the portlet.int
getPreferredHeight()
Defines the preferred height of the portlet.int
getPreferredWidth()
Defines the preferred width of the portlet.String
getTitle()
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:MonitorPortlet
Defines the title to be shown.- Specified by:
getTitle
in classMonitorPortlet
- Returns:
- the title.
-
getId
public String getId()
Description copied from class:MonitorPortlet
Defines the id for the portlet.- Specified by:
getId
in classMonitorPortlet
- Returns:
- the id.
-
getPreferredWidth
public int getPreferredWidth()
Description copied from class:MonitorPortlet
Defines the preferred width of the portlet.- Specified by:
getPreferredWidth
in classMonitorPortlet
- Returns:
- the width in pixels.
-
getPreferredHeight
public int getPreferredHeight()
Description copied from class:MonitorPortlet
Defines the preferred height of the portlet.- Specified by:
getPreferredHeight
in classMonitorPortlet
- Returns:
- the height in pixels.
-
-