private void addToolbarButtons() {

        Button add = CmsToolBar.createButton(FontOpenCms.WAND, CmsVaadinUtils.getMessageText(Messages.GUI_SITE_ADD_0));
        add.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                openEditDialog(null);
            }
        });
        m_uiContext.addToolbarButton(add);

        Button settings = CmsToolBar.createButton(
            FontOpenCms.SETTINGS,
            CmsVaadinUtils.getMessageText(Messages.GUI_SITE_GLOBAL_0));
        settings.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                openSettingsDailog();
            }
        });
        m_uiContext.addToolbarButton(settings);
        if (OpenCms.getSiteManager().isConfigurableWebServer() || isLetsEncryptConfiguredForWebserverThread()) {
            Button webServer = CmsToolBar.createButton(
                FontAwesome.SERVER,
                CmsVaadinUtils.getMessageText(Messages.GUI_SITE_WEBSERVERCONFIG_0));
            webServer.addClickListener(new ClickListener() {

                private static final long serialVersionUID = 1L;

                public void buttonClick(ClickEvent event) {

                    openUpdateServerConfigDailog();
                }
            });
            m_uiContext.addToolbarButton(webServer);
        }

        m_infoButton = new CmsInfoButton(getInfoMap());

        m_infoButton.setWindowCaption(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_STATISTICS_CAPTION_0));
        m_infoButton.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_SITE_STATISTICS_CAPTION_0));
        m_uiContext.addToolbarButton(m_infoButton);
    }
private void addToolbarButtons ( ) { Button add = CmsToolBar . createButton ( FontOpenCms . WAND , CmsVaadinUtils . getMessageText ( Messages . GUI_SITE_ADD_0 ) ) ; add . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { openEditDialog ( null ) ; } } ) ; m_uiContext . addToolbarButton ( add ) ; Button settings = CmsToolBar . createButton ( FontOpenCms . SETTINGS , CmsVaadinUtils . getMessageText ( Messages . GUI_SITE_GLOBAL_0 ) ) ; settings . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { openSettingsDailog ( ) ; } } ) ; m_uiContext . addToolbarButton ( settings ) ; if ( OpenCms . getSiteManager ( ) . isConfigurableWebServer ( ) || isLetsEncryptConfiguredForWebserverThread ( ) ) { Button webServer = CmsToolBar . createButton ( FontAwesome . SERVER , CmsVaadinUtils . getMessageText ( Messages . GUI_SITE_WEBSERVERCONFIG_0 ) ) ; webServer . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { openUpdateServerConfigDailog ( ) ; } } ) ; m_uiContext . addToolbarButton ( webServer ) ; } m_infoButton = new CmsInfoButton ( getInfoMap ( ) ) ; m_infoButton . setWindowCaption ( CmsVaadinUtils . getMessageText ( Messages . GUI_SITE_STATISTICS_CAPTION_0 ) ) ; m_infoButton . setDescription ( CmsVaadinUtils . getMessageText ( Messages . GUI_SITE_STATISTICS_CAPTION_0 ) ) ; m_uiContext . addToolbarButton ( m_infoButton ) ; }
Adds the toolbar buttons.<p>