code: private void createAndAddButton(PatternType pattern, String messageKey) {
  
          CmsRadioButton btn = new CmsRadioButton(pattern.toString(), Messages.get().key(messageKey));
          btn.addStyleName(I_CmsWidgetsLayoutBundle.INSTANCE.widgetCss().radioButtonlabel());
          btn.setGroup(m_groupPattern);
          m_patternButtons.put(pattern, btn);
          m_patternRadioButtonsPanel.add(btn);
  
      }
docs: Creates a pattern choice radio button and adds it where necessary.
  @param pattern the pattern that should be chosen by the button.
  @param messageKey the message key for the button's label.