- Modified report viewer window to be displayed as an embedded window at the desktop
This commit is contained in:
parent
c8dd937041
commit
446b5092ba
|
@ -60,5 +60,5 @@ public class ZkJRViewer extends Window {
|
|||
this.appendChild(grid);
|
||||
|
||||
this.setBorder("normal");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue