public class JRTemplatePrintFrame extends JRTemplatePrintElement implements JRPrintFrame, JRPrintElementContainer
JRPrintFrame that uses
template frames to store common
attributes.EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, templateUNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRTemplatePrintFrame() |
JRTemplatePrintFrame(JRTemplateFrame templateFrame)
Deprecated.
provide a source Id via
JRTemplatePrintFrame(JRTemplateFrame, int) |
JRTemplatePrintFrame(JRTemplateFrame templateFrame,
int sourceElementId)
Deprecated.
|
JRTemplatePrintFrame(JRTemplateFrame templateFrame,
PrintElementOriginator originator)
Creates a print frame element.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
void |
addElement(JRPrintElement element)
Adds an element to the container.
|
void |
addElements(Collection<? extends JRPrintElement> elements) |
Color |
getDefaultLineColor() |
List<JRPrintElement> |
getElements()
Returns the list of print elements contained in the frame.
|
JRLineBox |
getLineBox() |
void |
readVirtualized(VirtualizationInput in) |
void |
writeVirtualized(VirtualizationOutput out) |
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, setWidth, setX, setY, updateElementTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYgetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetHeight, setHeightpublic JRTemplatePrintFrame()
public JRTemplatePrintFrame(JRTemplateFrame templateFrame)
JRTemplatePrintFrame(JRTemplateFrame, int)templateFrame - the template frame that the element will usepublic JRTemplatePrintFrame(JRTemplateFrame templateFrame, int sourceElementId)
JRTemplatePrintFrame(JRTemplateFrame, PrintElementOriginator)templateFrame - the template frame that the element will usesourceElementId - the Id of the source elementpublic JRTemplatePrintFrame(JRTemplateFrame templateFrame, PrintElementOriginator originator)
templateFrame - the template frame that the element will useoriginator - public List<JRPrintElement> getElements()
JRPrintFramegetElements in interface JRPrintElementListContainergetElements in interface JRPrintFramepublic void addElement(JRPrintElement element)
JRPrintElementListContaineraddElement in interface JRPrintElementListContainerelement - the element to addpublic void addElements(Collection<? extends JRPrintElement> elements)
public JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainergetDefaultLineColor in class JRTemplatePrintElementpublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRTemplatePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationpublic void writeVirtualized(VirtualizationOutput out) throws IOException
writeVirtualized in interface VirtualizationSerializablewriteVirtualized in class JRTemplatePrintElementIOExceptionpublic void readVirtualized(VirtualizationInput in) throws IOException
readVirtualized in interface VirtualizationSerializablereadVirtualized in class JRTemplatePrintElementIOExceptionCopyright © 2017. All rights reserved.