public class JRVirtualPrintPage extends Object implements JRPrintPage, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JRVirtualPrintPage.JRIdHolderRenderer
Dummy image renderer that only stores the ID of a cached renderer.
|
static class |
JRVirtualPrintPage.JRIdHolderTemplateElement |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static String |
PROPERTY_VIRTUAL_PAGE_ELEMENT_SIZE
Property that determines how many print elements will make up a virtual page
handled as a unit by the virtualizer.
|
Constructor and Description |
---|
JRVirtualPrintPage(JasperPrint printObject,
JRVirtualizationContext virtualizationContext)
Constructs a virtualizable page.
|
JRVirtualPrintPage(JasperPrint printObject,
JRVirtualizer virtualizer,
JRVirtualizationContext virtualizationContext)
Deprecated.
the virtualizer should be passed as part of the virtualization context,
use
JRVirtualPrintPage(JasperPrint, JRVirtualizationContext) instead |
Modifier and Type | Method and Description |
---|---|
void |
addElement(JRPrintElement element)
Adds an element to the container.
|
void |
dispose()
Disposes this page's data.
|
List<JRPrintElement> |
getElements()
Returns the list of
elements of the container. |
JRVirtualizationContext |
getVirtualizationContext() |
void |
setElements(List<JRPrintElement> elements) |
protected static final org.apache.commons.logging.Log log
public static final String PROPERTY_VIRTUAL_PAGE_ELEMENT_SIZE
For most paginated reports, a virtual page corresponds to a report page. But for non-paginated reports and for reports having very large pages, a report page is broken into several virtual pages which are handled individually by the virtualizer.
This property provides the size of a virtual page in print elements. Note that virtual page sizes will actually vary around the configured size since there are cases when fewer elements remain on a report page and cases when the configured size is exceeded due to print frames being included at the end of virtual page.
If set to 0 or negative, report pages will not be broken into several virtual pages.
The property can be set at report and global levels or sent as a parameter value (as an integer, using the property name as parameter name). The default value is 2000.
public JRVirtualPrintPage(JasperPrint printObject, JRVirtualizer virtualizer, JRVirtualizationContext virtualizationContext)
JRVirtualPrintPage(JasperPrint, JRVirtualizationContext)
insteadpublic JRVirtualPrintPage(JasperPrint printObject, JRVirtualizationContext virtualizationContext)
public List<JRPrintElement> getElements()
JRPrintElementListContainer
elements
of the container.getElements
in interface JRPrintElementListContainer
public void setElements(List<JRPrintElement> elements)
setElements
in interface JRPrintPage
public void addElement(JRPrintElement element)
JRPrintElementListContainer
addElement
in interface JRPrintElementListContainer
element
- the element to addpublic void dispose()
public JRVirtualizationContext getVirtualizationContext()
Copyright © 2016. All rights reserved.