@Override public void actionPerformed(final ActionEvent event) { final StateToken token = session.getCurrentStateToken().copy().clearDocument(); final String url = new Url( session.getSiteUrl() + FileConstants.EVENTSSERVLET, new UrlParam(FileConstants.TOKEN, token.toString())) .toString(); NotifyUser.info( i18n.t("Calendar exporting"), i18n.t( "Open or use this address in your prefered calendar program for instance in your mobile: [%s]", TextUtils.generateHtmlLink(url, url, true)), ID, true); }
@Override public void actionPerformed(final ActionEvent event) { NotifyUser.showProgress(); final boolean setPublic = !isPublic(); listService .get() .setPublic( session.getUserHash(), session.getCurrentStateToken(), setPublic, new AsyncCallbackSimple<StateContainerDTO>() { @Override public void onSuccess(final StateContainerDTO result) { NotifyUser.info( setPublic ? i18n.t("This list is now public") : i18n.t("This list is now restricted to the public")); stateManager.setRetrievedState(result); stateManager.refreshCurrentState(); NotifyUser.hideProgress(); } }); }