IDEMPIERE-3721 Adding Archive toolbar button on Jasper viewer - peer review - restore old method for backward compatibility with external plugins

This commit is contained in:
Carlos Ruiz 2019-11-28 13:50:57 +01:00
parent dd2766d88c
commit 629f4e2a8a
2 changed files with 10 additions and 0 deletions

View File

@ -8,4 +8,9 @@ import net.sf.jasperreports.engine.JasperPrint;
public interface JRViewerProvider {
public void openViewer(JasperPrint jasperPrint, String title, PrintInfo printInfo) throws JRException;
default void openViewer(JasperPrint jasperPrint, String title) throws JRException {
openViewer(jasperPrint, title, null);
}
}

View File

@ -10,4 +10,9 @@ import net.sf.jasperreports.engine.JasperPrint;
public interface JRViewerProviderList {
public void openViewer(List<JasperPrint> jasperPrintList, String title, PrintInfo printInfo) throws JRException;
default void openViewer(List<JasperPrint> jasperPrintList, String title) throws JRException {
openViewer(jasperPrintList, title, null);
}
}