Package net.sf.jasperreports.engine.base
Class JRBaseGenericElement
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElement
-
- net.sf.jasperreports.engine.base.JRBaseGenericElement
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRChild,JRCloneable,JRCommonElement,JRElement,JRGenericElement,JRIdentifiable,JRPropertiesHolder,JRStyleContainer,JRVisitable
public class JRBaseGenericElement extends JRBaseElement implements JRGenericElement
A read-only implementation ofJRGenericElementthat is included in compiled reports.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, styleExpression, uuid, width, x, y
-
Fields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
-
-
Constructor Summary
Constructors Constructor Description JRBaseGenericElement(JRGenericElement element, JRBaseObjectFactory factory)Creates a generic element by copying an existing element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectExpressions(JRExpressionCollector collector)StringgetEvaluationGroupName()Returns the name of the evaluation group for this element.EvaluationTimeEnumgetEvaluationTimeValue()Returns the evaluation time of this element.JRGenericElementTypegetGenericType()Returns the generic type of this element.JRGenericElementParameter[]getParameters()Returns the list of parameters of this element.voidvisit(JRVisitor visitor)-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
clone, clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getStretchTypeValue, getStyle, getStyleExpression, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setUUID, setWidth, setX
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Constructor Detail
-
JRBaseGenericElement
public JRBaseGenericElement(JRGenericElement element, JRBaseObjectFactory factory)
Creates a generic element by copying an existing element.- Parameters:
element- the element to copyfactory- the object factory to be used for creating sub objects
-
-
Method Detail
-
getGenericType
public JRGenericElementType getGenericType()
Description copied from interface:JRGenericElementReturns the generic type of this element. This type will be propagated to the generated print element, and used to resolve export handler for the print element.- Specified by:
getGenericTypein interfaceJRGenericElement- Returns:
- the generic type of this element
-
getParameters
public JRGenericElementParameter[] getParameters()
Description copied from interface:JRGenericElementReturns the list of parameters of this element.- Specified by:
getParametersin interfaceJRGenericElement- Returns:
- the list of parameters
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRElement
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visitin interfaceJRVisitable
-
getEvaluationGroupName
public String getEvaluationGroupName()
Description copied from interface:JRGenericElementReturns the name of the evaluation group for this element. The evaluation group is only present whenthe evaluation timeisEvaluationTimeEnum.GROUP.- Specified by:
getEvaluationGroupNamein interfaceJRGenericElement- Returns:
- the name of the evaluation group for this element
-
getEvaluationTimeValue
public EvaluationTimeEnum getEvaluationTimeValue()
Description copied from interface:JRGenericElementReturns the evaluation time of this element.The evaluation time determines the moment at which parameter expressions are evaluated for this element. All parameters will be evaluated at the same moment.
- Specified by:
getEvaluationTimeValuein interfaceJRGenericElement- Returns:
- the evaluation time of this element
-
-