code: public void setWidget(I_CmsNotificationWidget widget) {
  
          if (m_widget != null) {
              m_widget.clearMessages();
          }
          m_widget = widget;
          m_widget.clearMessages();
          for (CmsNotificationMessage message : m_messages) {
              m_widget.addMessage(message);
          }
      }
docs: Sets the widget.<p>
  
  @param widget the widget to set