code: private ClickListener getClickListener(
          final List<String> htmlLines,
          final List<InfoElementBean> additionalElements) {
  
          return new Button.ClickListener() {
  
              private static final long serialVersionUID = -553128629431329217L;
  
              public void buttonClick(ClickEvent event) {
  
                  final Window window = CmsBasicDialog.prepareWindow(CmsBasicDialog.DialogWidth.content);
                  window.setCaption(
                      m_windowCaption == null
                      ? CmsVaadinUtils.getMessageText(Messages.GUI_INFO_BUTTON_CAPTION_0)
                      : m_windowCaption);
                  window.setResizable(false);
                  CmsBasicDialog dialog = new CmsBasicDialog();
                  if (m_addButton != null) {
                      dialog.addButton(m_addButton, false);
                  }
                  VerticalLayout layout = getLayout(htmlLines, additionalElements);
                  dialog.setContent(layout);
  
                  Button button = new Button(CmsVaadinUtils.messageClose());
                  button.addClickListener(new Button.ClickListener() {
  
                      private static final long serialVersionUID = 5789436407764072884L;
  
                      public void buttonClick(ClickEvent event1) {
  
                          window.close();
  
                      }
                  });
                  dialog.addButton(button);
  
                  window.setContent(dialog);
  
                  UI.getCurrent().addWindow(window);
              }
          };
  
      }
docs: Clicklistener for the button.<p>
  
  @param htmlLines to be shown in Label
  @param additionalElements to be placed in the verticalllayout which holds the label
  @return ClickListener