Search in sources :

Example 1 with DashletSelector

use of org.opennms.features.vaadin.dashboard.config.DashletSelector in project opennms by OpenNMS.

the class WallboardBody method getDashletInstance.

public Dashlet getDashletInstance(DashletSpec dashletSpec) {
    DashletSelector dashletSelector = ((DashletSelectorAccess) getUI()).getDashletSelector();
    Dashlet dashlet = dashletSelector.getDashletFactoryForName(dashletSpec.getDashletName()).newDashletInstance(dashletSpec);
    dashlet.getWallboardComponent().getComponent().setCaption(null);
    return dashlet;
}
Also used : DashletSelectorAccess(org.opennms.features.vaadin.dashboard.model.DashletSelectorAccess) DashletSelector(org.opennms.features.vaadin.dashboard.config.DashletSelector) Dashlet(org.opennms.features.vaadin.dashboard.model.Dashlet)

Aggregations

DashletSelector (org.opennms.features.vaadin.dashboard.config.DashletSelector)1 Dashlet (org.opennms.features.vaadin.dashboard.model.Dashlet)1 DashletSelectorAccess (org.opennms.features.vaadin.dashboard.model.DashletSelectorAccess)1