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 |
---|---|
DashletComponent |
getDashboardComponent(com.vaadin.ui.UI ui) |
String |
getHumanReadableFormat(long secondsAll)
Returns a human-readable
String representation of a timestamp in the past. |
DashletComponent |
getWallboardComponent(com.vaadin.ui.UI ui)
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(com.vaadin.ui.UI ui)
Dashlet
getWallboardComponent
in interface Dashlet
getWallboardComponent
in class AbstractDashlet
ui
- The UI
which holds the component.public DashletComponent getDashboardComponent(com.vaadin.ui.UI ui)
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 boolean isBoosted()
Dashlet
isBoosted
in interface Dashlet
isBoosted
in class AbstractDashlet
Copyright © 2021. All rights reserved.