Class AlarmsDashlet
- java.lang.Object
-
- org.opennms.features.vaadin.dashboard.model.AbstractDashlet
-
- org.opennms.features.vaadin.dashboard.dashlets.AlarmsDashlet
-
- All Implemented Interfaces:
Dashlet
public class AlarmsDashlet extends AbstractDashlet
This class represents a Alert Dashlet with minimum details.- Author:
- Christian Pape
-
-
Constructor Summary
Constructors Constructor Description AlarmsDashlet(String name, DashletSpec dashletSpec, AlarmDao alarmDao, NodeDao nodeDao)
Constructor for instantiating new objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DashletComponent
getDashboardComponent(com.vaadin.ui.UI ui)
String
getHumanReadableFormat(long secondsAll)
Returns a human-readableString
representation of a timestamp in the past.DashletComponent
getWallboardComponent(com.vaadin.ui.UI ui)
Updates the dashlet contents and computes new boosted stateboolean
isBoosted()
Checks whether this dashlet is boosted.-
Methods inherited from class org.opennms.features.vaadin.dashboard.model.AbstractDashlet
getDashletSpec, getName, setDashletSpec, setName
-
-
-
-
Constructor Detail
-
AlarmsDashlet
public AlarmsDashlet(String name, DashletSpec dashletSpec, AlarmDao alarmDao, NodeDao nodeDao)
Constructor for instantiating new objects.- Parameters:
dashletSpec
- theDashletSpec
to be usedalarmDao
- theAlarmDao
to be usednodeDao
- theNodeDao
to be used
-
-
Method Detail
-
getWallboardComponent
public DashletComponent getWallboardComponent(com.vaadin.ui.UI ui)
Description copied from interface:Dashlet
Updates the dashlet contents and computes new boosted state- Specified by:
getWallboardComponent
in interfaceDashlet
- Overrides:
getWallboardComponent
in classAbstractDashlet
- Parameters:
ui
- TheUI
which holds the component.
-
getDashboardComponent
public DashletComponent getDashboardComponent(com.vaadin.ui.UI ui)
- Specified by:
getDashboardComponent
in interfaceDashlet
- Overrides:
getDashboardComponent
in classAbstractDashlet
-
getHumanReadableFormat
public String getHumanReadableFormat(long secondsAll)
Returns a human-readableString
representation of a timestamp in the past.- Parameters:
secondsAll
- the timestamp to be used- Returns:
- a human-readable representation
-
isBoosted
public boolean isBoosted()
Description copied from interface:Dashlet
Checks whether this dashlet is boosted.- Specified by:
isBoosted
in interfaceDashlet
- Overrides:
isBoosted
in classAbstractDashlet
- Returns:
- true, if boosted, false otherwise
-
-