Package net.sf.jasperreports.engine
Class SimplePrintPart
java.lang.Object
net.sf.jasperreports.engine.SimplePrintPart
- All Implemented Interfaces:
Serializable,JRPropertiesHolder,PrintPart
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from interface net.sf.jasperreports.engine.PrintPart
ELEMENT_PROPERTY_PART_NAME, PROPERTIES_TRANSFER_PREFIX, PROPERTY_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePrintPageFormatcreatePageFormat(JasperPrint partJasperPrint) Creates the page format of a part from the document generated by the part report.static SimplePrintPartfromJasperPrint(JasperPrint partJasperPrint, String partName) static SimplePrintPartfromJasperPrint(JasperPrint partJasperPrint, String partName, JRPropertiesHolder properties) getName()Returns the parent properties holder, whose properties are used as defaults for this object.Returns this object's properties map.booleanChecks whether the object has any properties.voidvoidsetPageFormat(PrintPageFormat pageFormat) voidupdate(String partName, JRPropertiesHolder partProperties)
-
Constructor Details
-
SimplePrintPart
public SimplePrintPart()
-
-
Method Details
-
fromJasperPrint
-
fromJasperPrint
public static SimplePrintPart fromJasperPrint(JasperPrint partJasperPrint, String partName, JRPropertiesHolder properties) -
createPageFormat
Creates the page format of a part from the document generated by the part report. -
getName
-
setName
-
getPageFormat
- Specified by:
getPageFormatin interfacePrintPart
-
setPageFormat
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
update
-