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;
}
Aggregations