private void init(CmsObject cms, final Window window, final CmsAccountsApp app) {

        CmsVaadinUtils.readAndLocalizeDesign(this, CmsVaadinUtils.getWpMessagesForCurrentLocale(), null);
        try {
            displayResourceInfoDirectly(
                Collections.singletonList(
                    CmsAccountsApp.getOUInfo(
                        OpenCms.getOrgUnitManager().readOrganizationalUnit(A_CmsUI.getCmsObject(), m_ouName))));
        } catch (CmsException e) {
            LOG.error("Unable to read OU", e);
        }
        m_icon.setContentMode(ContentMode.HTML);
        m_icon.setValue(FontOpenCms.WARNING.getHtml());
        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();

            }

        });
    }
private void init ( CmsObject cms , final Window window , final CmsAccountsApp app ) { CmsVaadinUtils . readAndLocalizeDesign ( this , CmsVaadinUtils . getWpMessagesForCurrentLocale ( ) , null ) ; try { displayResourceInfoDirectly ( Collections . singletonList ( CmsAccountsApp . getOUInfo ( OpenCms . getOrgUnitManager ( ) . readOrganizationalUnit ( A_CmsUI . getCmsObject ( ) , m_ouName ) ) ) ) ; } catch ( CmsException e ) { LOG . error ( "Unable to read OU" , e ) ; } m_icon . setContentMode ( ContentMode . HTML ) ; m_icon . setValue ( FontOpenCms . WARNING . getHtml ( ) ) ; 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 ( ) ; } } ) ; }
Initialized the dialog.<p>

@param cms CmsObject
@param window window
@param app