com.jasperassistant.designer.viewer.util
Class Compatibility

java.lang.Object
  extended bycom.jasperassistant.designer.viewer.util.Compatibility

public class Compatibility
extends java.lang.Object

Utility methods used to maintain binary compatibility accross different JasperReports versions

Author:
Peter Severin (petru_severin@yahoo.com)

Method Summary
static java.util.List getChildren(net.sf.jasperreports.engine.JRPrintElement element)
          Returns children of the given print element that is potentially a container.
static void setOnePagePerSheetParameter(net.sf.jasperreports.engine.export.JRXlsExporter exporter, java.lang.Boolean value)
          Sets the IS_ONE_PAGE_PER_SHEET parameter for the given xls exporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChildren

public static java.util.List getChildren(net.sf.jasperreports.engine.JRPrintElement element)
Returns children of the given print element that is potentially a container.

Parameters:
element - the print element
Returns:
the children list or null if the element has not children

setOnePagePerSheetParameter

public static void setOnePagePerSheetParameter(net.sf.jasperreports.engine.export.JRXlsExporter exporter,
                                               java.lang.Boolean value)
Sets the IS_ONE_PAGE_PER_SHEET parameter for the given xls exporter. This allows to overcome the binary incompatibility change introduced in JasperReports 1.2.7 when the parameter's declaration was moved to an abstract class.

Parameters:
exporter - the xls exporter
value - the parameter's value