code: public void setWarningMessage(int valueIndex, String message, CmsTabbedPanel<?> tabbedPanel) {
  
          if (!m_attributeValueViews.isEmpty()) {
              FlowPanel parent = (FlowPanel)m_attributeValueViews.get(0).getParent();
              CmsAttributeValueView valueView = (CmsAttributeValueView)parent.getWidget(valueIndex);
              valueView.setWarningMessage(message);
              if (tabbedPanel != null) {
                  int tabIndex = tabbedPanel.getTabIndex(valueView.getElement());
                  if (tabIndex > -1) {
                      Widget tab = tabbedPanel.getTabWidget(tabIndex);
                      tab.setTitle("This tab has warnings.");
                      tab.getParent().addStyleName(I_CmsLayoutBundle.INSTANCE.form().hasWarning());
                  }
  
              }
          }
      }
docs: Sets the warning message for the given value index.<p>
  
  @param valueIndex the value index
  @param message the warning message
  @param tabbedPanel the forms tabbed panel if available