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, setNamepublic 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()
DashletgetWallboardComponent in interface DashletgetWallboardComponent in class AbstractDashletpublic DashletComponent getDashboardComponent()
getDashboardComponent in interface DashletgetDashboardComponent in class AbstractDashletpublic 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()
DashletisBoosted in interface DashletisBoosted in class AbstractDashletCopyright © 2020. All rights reserved.