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 DashletComponentgetDashboardComponent(com.vaadin.ui.UI ui)StringgetHumanReadableFormat(long secondsAll)Returns a human-readableStringrepresentation of a timestamp in the past.DashletComponentgetWallboardComponent(com.vaadin.ui.UI ui)Updates the dashlet contents and computes new boosted statebooleanisBoosted()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- theDashletSpecto be usedalarmDao- theAlarmDaoto be usednodeDao- theNodeDaoto be used
-
-
Method Detail
-
getWallboardComponent
public DashletComponent getWallboardComponent(com.vaadin.ui.UI ui)
Description copied from interface:DashletUpdates the dashlet contents and computes new boosted state- Specified by:
getWallboardComponentin interfaceDashlet- Overrides:
getWallboardComponentin classAbstractDashlet- Parameters:
ui- TheUIwhich holds the component.
-
getDashboardComponent
public DashletComponent getDashboardComponent(com.vaadin.ui.UI ui)
- Specified by:
getDashboardComponentin interfaceDashlet- Overrides:
getDashboardComponentin classAbstractDashlet
-
getHumanReadableFormat
public String getHumanReadableFormat(long secondsAll)
Returns a human-readableStringrepresentation 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:DashletChecks whether this dashlet is boosted.- Specified by:
isBoostedin interfaceDashlet- Overrides:
isBoostedin classAbstractDashlet- Returns:
- true, if boosted, false otherwise
-
-