public List<String> getHiddenWidgetIds() {
   DashboardPanel<T> dashboard = getDashboardPanel();
   List<String> ids = new ArrayList<String>();
   for (AbstractWidget<T> widget : dashboard.getWidgets()) {
     if (widget.isHidden()) ids.add(widget.getId());
   }
   return ids;
 }
Example #2
0
 public List<IWidgetType<T>> getAvailableWidgetTypes() {
   DashboardPanel<T> dashboard = getDashboardPanel();
   return registry.lookupByDomainAndTab(
       dashboard.getDomain(), dashboard.getTab(), dashboard.getWidgetsFilter());
 }