net.sf.jasperreports.engine.fill
Class JRTemplatePrintFrame
java.lang.Object
net.sf.jasperreports.engine.fill.JRTemplatePrintElement
net.sf.jasperreports.engine.fill.JRTemplatePrintFrame
- All Implemented Interfaces:
- java.io.Serializable, JRBoxContainer, JRCommonElement, JRIdentifiable, JRPrintElement, JRPrintElementContainer, JRPrintFrame, JRPropertiesHolder, JRStyleContainer
public class JRTemplatePrintFrame
- extends JRTemplatePrintElement
- implements JRPrintFrame, JRPrintElementContainer
Implementation of JRPrintFrame
that uses
template frames
to store common
attributes.
- Version:
- $Id: JRTemplatePrintFrame.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement |
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setWidth, setX, setY, updateElementTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement |
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY |
JRTemplatePrintFrame
public JRTemplatePrintFrame(JRTemplateFrame templateFrame)
- Deprecated. provide a source Id via
JRTemplatePrintFrame(JRTemplateFrame, int)
- Creates a print frame element.
- Parameters:
templateFrame
- the template frame that the element will use
JRTemplatePrintFrame
public JRTemplatePrintFrame(JRTemplateFrame templateFrame,
int sourceElementId)
- Creates a print frame element.
- Parameters:
templateFrame
- the template frame that the element will usesourceElementId
- the Id of the source element
getElements
public java.util.List<JRPrintElement> getElements()
- Description copied from interface:
JRPrintFrame
- Returns the list of print elements contained in the frame.
- Specified by:
getElements
in interface JRPrintElementContainer
- Specified by:
getElements
in interface JRPrintFrame
- Returns:
- the list of sub print elements
addElement
public void addElement(JRPrintElement element)
- Description copied from interface:
JRPrintElementContainer
- Adds an element to the container.
- Specified by:
addElement
in interface JRPrintElementContainer
- Parameters:
element
- the element to add
addElements
public void addElements(java.util.Collection<? extends JRPrintElement> elements)
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBox
in interface JRBoxContainer
getDefaultLineColor
public java.awt.Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interface JRBoxContainer
- Overrides:
getDefaultLineColor
in class JRTemplatePrintElement
accept
public <T> void accept(PrintElementVisitor<T> visitor,
T arg)
- Description copied from interface:
JRPrintElement
- Accepts a print element visitor.
The element calls the method that corresponds to the element type on the visitor.
- Specified by:
accept
in interface JRPrintElement
- Overrides:
accept
in class JRTemplatePrintElement
- Type Parameters:
T
- the type of the argument passed to the visit operation- Parameters:
visitor
- the visitor objectsarg
- the argument passed to the visit operation
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com