docs: public void setWidgetType(WidgetType type) {
  
          m_widgetType = type;
          m_principalTypeSelect.setVisible(m_widgetType.equals(WidgetType.principalwidget));
          m_principalTypeSelect.setValue(
              m_widgetType.equals(WidgetType.groupwidget)
              ? I_CmsPrincipal.PRINCIPAL_GROUP
              : I_CmsPrincipal.PRINCIPAL_USER);
      }