code: private void init(CmsObject cms, final Window window, final CmsAccountsApp app) {
  
          CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
          m_icon.setContentMode(ContentMode.HTML);
          m_icon.setValue(FontOpenCms.WARNING.getHtml());
          m_icon2.setContentMode(ContentMode.HTML);
          m_icon2.setValue(FontOpenCms.WARNING.getHtml());
          m_label_deleteDefault.setVisible(false);
          m_cms = cms;
          m_okButton.addClickListener(new ClickListener() {
  
              private static final long serialVersionUID = -7845894751587879028L;
  
              public void buttonClick(ClickEvent event) {
  
                  deletePrincipal();
                  window.close();
                  app.reload();
  
              }
  
          });
  
          m_cancelButton.addClickListener(new ClickListener() {
  
              private static final long serialVersionUID = 6649262870116199591L;
  
              public void buttonClick(ClickEvent event) {
  
                  window.close();
  
              }
  
          });
      }
docs: Initialized the dialog.<p>
  
  @param cms CmsObject
  @param window window
  @param app