code: public void setVerticalLayout(VerticalLayout layout, boolean addAll) {
  
          if (m_results.size() > 0) {
              if (addAll) {
                  for (CmsResourceTypeStatResult result : m_results) {
                      layout.addComponent(getLayoutFromResult(result), 0);
                  }
              } else {
                  CmsResourceTypeStatResult statResult = m_results.get(m_results.size() - 1);
  
                  if (m_updated) {
                      removeRow(layout, statResult);
                  }
                  layout.addComponent(getLayoutFromResult(statResult), 0);
              }
          }
      }
docs: Sets the layout.<p>
  
  @param layout to display the result in
  @param addAll indicates if the whole list should be added or just the last item