public class AlarmsDashlet extends AbstractDashlet
Constructor and Description |
---|
AlarmsDashlet(String name,
DashletSpec dashletSpec,
AlarmDao alarmDao,
NodeDao nodeDao)
Constructor for instantiating new objects.
|
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Component |
createAlarmComponent(OnmsAlarm onmsAlarm,
OnmsNode onmsNode)
Returns the component for visualising the alarms data.
|
DashletComponent |
getDashboardComponent() |
String |
getHumanReadableFormat(long secondsAll)
Returns a human-readable
String representation of a timestamp in the past. |
DashletComponent |
getWallboardComponent()
Updates the dashlet contents and computes new boosted state
|
boolean |
isBoosted()
Checks whether this dashlet is boosted.
|
getDashletSpec, getName, setDashletSpec, setName
public AlarmsDashlet(String name, DashletSpec dashletSpec, AlarmDao alarmDao, NodeDao nodeDao)
dashletSpec
- the DashletSpec
to be usedalarmDao
- the AlarmDao
to be usednodeDao
- the NodeDao
to be usedpublic DashletComponent getWallboardComponent()
Dashlet
getWallboardComponent
in interface Dashlet
getWallboardComponent
in class AbstractDashlet
public DashletComponent getDashboardComponent()
getDashboardComponent
in interface Dashlet
getDashboardComponent
in class AbstractDashlet
public String getHumanReadableFormat(long secondsAll)
String
representation of a timestamp in the past.secondsAll
- the timestamp to be usedpublic com.vaadin.ui.Component createAlarmComponent(OnmsAlarm onmsAlarm, OnmsNode onmsNode)
public boolean isBoosted()
Dashlet
isBoosted
in interface Dashlet
isBoosted
in class AbstractDashlet
Copyright © 2018. All rights reserved.