@Override public void closePopup() { if (popupPanel != null) { popupPanel.close(); setPopupEnabled(false); } }
@Override public void showPopup(String pageName, String additionalClasses) { if (isPopupEnabled()) { return; } setPopupEnabled(true); Page page = contentModel.findPageByName(pageName); PageController popupPageControler = new PageController(this); popupPanel = new PagePopupPanel(getView(), popupPageControler, additionalClasses); popupPanel.showPage(page, contentModel.getBaseUrl()); }