Package net.sf.jasperreports.engine
Class SimplePrintPart
- java.lang.Object
-
- net.sf.jasperreports.engine.SimplePrintPart
-
- All Implemented Interfaces:
Serializable
,JRPropertiesHolder
,PrintPart
public class SimplePrintPart extends Object implements PrintPart, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.engine.PrintPart
ELEMENT_PROPERTY_PART_NAME, PROPERTIES_TRANSFER_PREFIX, PROPERTY_VISIBLE
-
-
Constructor Summary
Constructors Constructor Description SimplePrintPart()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimplePrintPart
fromJasperPrint(JasperPrint partJasperPrint, String partName)
static SimplePrintPart
fromJasperPrint(JasperPrint partJasperPrint, String partName, JRPropertiesHolder properties)
String
getName()
PrintPageFormat
getPageFormat()
JRPropertiesHolder
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMap
getPropertiesMap()
Returns this object's properties map.boolean
hasProperties()
Checks whether the object has any properties.void
setName(String name)
void
setPageFormat(PrintPageFormat pageFormat)
void
update(String partName, JRPropertiesHolder partProperties)
-
-
-
Method Detail
-
fromJasperPrint
public static SimplePrintPart fromJasperPrint(JasperPrint partJasperPrint, String partName)
-
fromJasperPrint
public static SimplePrintPart fromJasperPrint(JasperPrint partJasperPrint, String partName, JRPropertiesHolder properties)
-
setName
public void setName(String name)
-
getPageFormat
public PrintPageFormat getPageFormat()
- Specified by:
getPageFormat
in interfacePrintPart
-
setPageFormat
public void setPageFormat(PrintPageFormat pageFormat)
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolder
Checks whether the object has any properties.- Specified by:
hasProperties
in interfaceJRPropertiesHolder
- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolder
Returns this object's properties map.- Specified by:
getPropertiesMap
in interfaceJRPropertiesHolder
- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolder
Returns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentProperties
in interfaceJRPropertiesHolder
- Returns:
- the parent properties holder, or
null
if no parent
-
update
public void update(String partName, JRPropertiesHolder partProperties)
-
-