Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public List<IWidgetType<T>> getAvailableWidgetTypes() {
   DashboardPanel<T> dashboard = getDashboardPanel();
   return registry.lookupByDomainAndTab(
       dashboard.getDomain(), dashboard.getTab(), dashboard.getWidgetsFilter());
 }