- Modified report viewer window to be displayed as an embedded window at the desktop

This commit is contained in:
Heng Sin Low 2008-12-02 08:28:37 +00:00
parent c8dd937041
commit 446b5092ba
3 changed files with 5 additions and 7 deletions

View File

@ -60,5 +60,5 @@ public class ZkJRViewer extends Window {
this.appendChild(grid);
this.setBorder("normal");
}
}
}

View File

@ -3,8 +3,8 @@ package org.adempiere.webui.window;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.Window;
import org.adempiere.webui.session.SessionManager;
import org.compiere.report.JRViewerProvider;
public class ZkJRViewerProvider implements JRViewerProvider {
@ -12,10 +12,10 @@ public class ZkJRViewerProvider implements JRViewerProvider {
public void openViewer(JasperPrint jasperPrint, String title)
throws JRException {
Window viewer = new ZkJRViewer(jasperPrint, title);
viewer.setAttribute("mode", "modal");
viewer.setClosable(true);
viewer.setWidth("95%");
AEnv.showWindow(viewer);
viewer.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
SessionManager.getAppDesktop().showWindow(viewer);
}
}

View File

@ -30,8 +30,6 @@ public class ZkReportViewerProvider implements ReportViewerProvider {
public void openViewer(ReportEngine report) {
Window viewer = new ZkReportViewer(report, report.getName());
viewer.setAttribute("mode", "overlapped");
viewer.setClosable(true);
viewer.setWidth("95%");
viewer.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);