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, 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(com.vaadin.ui.UI ui)
DashletgetWallboardComponent in interface DashletgetWallboardComponent in class AbstractDashletui - The UI which holds the component.public DashletComponent getDashboardComponent(com.vaadin.ui.UI ui)
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 boolean isBoosted()
DashletisBoosted in interface DashletisBoosted in class AbstractDashletCopyright © 2020. All rights reserved.