Dashlet dashlet = getDashletInstance(dashboardSuitableDashlets.get(i)); DashletComponent dashletComponent = dashlet.getDashboardComponent(getUI()); String caption = dashlet.getName(); if (dashlet.getDashletSpec().getTitle() != null) { if (!"".equals(dashlet.getDashletSpec().getTitle())) { caption += ": " + "" + dashlet.getDashletSpec().getTitle();
dashlet.getWallboardComponent(getUI()).getComponent().addStyleName("wallboard"); dashlets.get(index).getWallboardComponent(getUI()).refresh(); if (dashlets.get(index).isBoosted()) { priorityMap.put(index, Math.max(0, dashletSpecs.get(index).getPriority() - dashletSpecs.get(index).getBoostPriority())); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration()); dashlets.get(index).getWallboardComponent(getUI()).refresh(); if (dashlets.get(index).isBoosted()) { priorityMap.put(index, Math.max(0, dashletSpecs.get(index).getPriority() - dashletSpecs.get(index).getBoostPriority())); durationMap.put(index, dashletSpecs.get(index).getDuration() + dashletSpecs.get(index).getBoostDuration());
waitFor = oldDurationMap.get(next) * 1000; if (!dashlets.get(next).getName().equals(dashletSpecs.get(next).getDashletName())) { dashlets.put(next, getDashletInstance(dashletSpecs.get(next))); panel.setSizeFull(); String caption = dashlets.get(next).getName(); if (dashlets.get(next).getDashletSpec().getTitle() != null) { if (!"".equals(dashlets.get(next).getDashletSpec().getTitle())) { caption += ": " + "" + dashlets.get(next).getDashletSpec().getTitle(); Component component = dashlets.get(next).getWallboardComponent(getUI()).getComponent();
public Dashlet getDashletInstance(DashletSpec dashletSpec) { DashletSelector dashletSelector = ((DashletSelectorAccess) getUI()).getDashletSelector(); Dashlet dashlet = dashletSelector.getDashletFactoryForName(dashletSpec.getDashletName()).newDashletInstance(dashletSpec); dashlet.getWallboardComponent(getUI()).getComponent().setCaption(null); return dashlet; }