Skip to content

Commit

Permalink
4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edu-de committed May 22, 2023
1 parent 4381948 commit 2120235
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.google.gwt.user.client.ui.Widget;

import net.datenwerke.rs.theme.client.icon.BaseIcon;

public interface UtilsUIService {

public void redirect(String url);
Expand All @@ -20,6 +22,7 @@ public interface UtilsUIService {

String guessUserTimezone();

void showHtmlPopupWindows(final String title, final String html, final boolean maximize);
void showHtmlPopupWindows(final String title, final String html, final boolean maximize, BaseIcon icon,
boolean collapsible, boolean titleCollapse, boolean maximizable, boolean resizable);

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import net.datenwerke.gxtdto.client.baseex.widget.btn.DwTextButton;
import net.datenwerke.gxtdto.client.baseex.widget.window.SimpleDialogWindow;
import net.datenwerke.gxtdto.client.locale.BaseMessages;
import net.datenwerke.rs.theme.client.icon.BaseIcon;

public class UtilsUIServiceImpl implements UtilsUIService {

Expand Down Expand Up @@ -83,23 +84,30 @@ public void triggerDownload(String url) {
iframeLoadHandler.removeHandler();
String content = getIFrameContent(GWT_DOWNLOAD_FRAME);
String title = getIFrameTitle(GWT_DOWNLOAD_FRAME);
showHtmlPopupWindows(title, content, false);
showHtmlPopupWindows(title, content, false, null, false, false, false, false);
});

downloadFrame.setUrl(url);
}

@Override
public void showHtmlPopupWindows(final String title, final String html, final boolean maximize) {
public void showHtmlPopupWindows(final String title, final String html, final boolean maximize, BaseIcon icon,
boolean collapsible, boolean titleCollapse, boolean maximizable, boolean resizable) {
SimpleDialogWindow popup = new SimpleDialogWindow() {

@Override
protected void initializeUi() {

/* create window */
setWidth(700);
setHeading(title);
setHeight(550);

if (null != icon)
setHeaderIcon(icon);
setCollapsible(collapsible);
setTitleCollapse(titleCollapse);
setMaximizable(maximizable);
setResizable(resizable);

setWidget(asIframe(html));

Expand Down
2 changes: 1 addition & 1 deletion src/net/datenwerke/rs/ReportServerServiceConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public class ReportServerServiceConfig extends DwGwtFrameworkBase {

private final Logger logger = LoggerFactory.getLogger(getClass().getName());

public static final String CODE_VERSION = "2023-04-20-14-10-11";
public static final String CODE_VERSION = "2023-05-22-12-11-10";

public static final String ENTERPRISE_MODULE_LOCATION = "net.datenwerke.rsenterprise.main.service.RsEnterpriseModule";
private static final String ENTERPRISE_MODULE_LOAD_MODULE_METHOD = "getEnterpriseModules";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ public void onFailure(Throwable caught) {
public void onSuccess(String result) {
mainPanel.unmask();
utilsUIServiceProvider.get().showHtmlPopupWindows(PreFilterMessages.INSTANCE.preFilterHeading(),
result, true);
result, true, BaseIcon.SITEMAP, false, false, true, true);
}

@Override
Expand Down

0 comments on commit 2120235

Please sign in to comment.