public class JRFillComponentElement extends JRFillElement implements JRComponentElement, FillContext
JRComponentElement
which is used during report fill.band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, elementGroup, elementId, expressionEvaluator, fillContainerContext, filler, initStyle, mergedProperties, originProvider, parent, printWhenGroupChanges, providerStyle, staticProperties, styleProviders, templates
Constructor and Description |
---|
JRFillComponentElement(JRBaseFiller filler,
JRComponentElement element,
JRFillObjectFactory factory) |
JRFillComponentElement(JRFillComponentElement element,
JRFillCloneFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
collectExpressions(JRExpressionCollector collector) |
JRFillCloneable |
createClone(JRFillCloneFactory factory)
Creates a working clone of itself.
|
protected JRTemplateElement |
createElementTemplate() |
protected void |
evaluate(byte evaluation) |
Object |
evaluate(JRExpression expression,
byte evaluation)
Evaluates an expression in the main report dataset.
|
protected JRPrintElement |
fill() |
Component |
getComponent()
Returns the component instance wrapped by this element.
|
JRComponentElement |
getComponentElement()
Returns the component element that wraps the component.
|
ComponentKey |
getComponentKey()
Returns the component type key for this element.
|
JROrigin |
getElementOrigin()
Returns the origin of the current component element.
|
int |
getElementPrintY()
Returns the position on the vertical axis where the component element
starts printing.
|
int |
getElementSourceId()
Returns the fill element Id associated to the component element.
|
JRStyle |
getElementStyle()
Returns the current style of the component element.
|
FillContainerContext |
getFillContainerContext() |
JRFillDataset |
getFillDataset()
Returns the dataset used by the expression evaluator.
|
JRBaseFiller |
getFiller()
Returns the filler object.
|
Locale |
getReportLocale()
Returns the locale used to fill the current report.
|
ResourceBundle |
getReportResourceBundle()
Returns the resource bundle used for the current report.
|
TimeZone |
getReportTimezone()
Returns the time zone used to fill the current report.
|
protected boolean |
prepare(int availableHeight,
boolean isOverflow) |
void |
registerDelayedEvaluation(JRPrintElement printElement,
EvaluationTimeEnum evaluationTime,
String evaluationGroup)
Registers a delayed evaluation for a print element.
|
protected void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element.
|
protected void |
resolveElement(JRPrintElement element,
byte evaluation,
JREvaluationTime evaluationTime)
Resolves an element.
|
protected void |
rewind() |
void |
visit(JRVisitor visitor) |
addDependantElement, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, delayedEvaluate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, evaluateStyle, getBackcolor, getBand, getDefaultStyleProvider, getDependantElements, getElementGroup, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getForecolor, getGroupElements, getHeight, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleNameReference, getTemplate, getUUID, getVariable, getWidth, getX, getY, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, initStyleProviders, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, registerTemplate, reset, setAlreadyPrinted, setBackcolor, setBand, setConditionalStylesContainer, setCurrentEvaluation, setForecolor, setHeight, setMode, setOriginProvider, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchHeightFinal, transferProperties, transferProperties
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
clone
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
getDefaultStyleProvider
public JRFillComponentElement(JRBaseFiller filler, JRComponentElement element, JRFillObjectFactory factory)
public JRFillComponentElement(JRFillComponentElement element, JRFillCloneFactory factory)
protected void evaluate(byte evaluation) throws JRException
evaluate
in class JRFillElement
JRException
protected boolean prepare(int availableHeight, boolean isOverflow) throws JRException
prepare
in class JRFillElement
JRException
protected JRPrintElement fill() throws JRException
fill
in class JRFillElement
JRException
protected JRTemplateElement createElementTemplate()
createElementTemplate
in class JRFillElement
protected void resolveElement(JRPrintElement element, byte evaluation, JREvaluationTime evaluationTime) throws JRException
JRFillElement
resolveElement
in class JRFillElement
element
- the elementevaluation
- the evaluation typeevaluationTime
- the current evaluation timeJRException
protected void resolveElement(JRPrintElement element, byte evaluation) throws JRException
JRFillElement
resolveElement
in class JRFillElement
element
- the elementevaluation
- the evaluation typeJRException
protected void rewind() throws JRException
rewind
in class JRFillElement
JRException
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneable
createClone
in interface JRFillCloneable
factory
- the clone factory to use while creating the clonepublic Component getComponent()
JRComponentElement
getComponent
in interface JRComponentElement
public ComponentKey getComponentKey()
JRComponentElement
The component type key needs to be set in order to locate the component manager.
getComponentKey
in interface JRComponentElement
public Object evaluate(JRExpression expression, byte evaluation) throws JRException
FillContext
evaluate
in interface FillContext
evaluate
in interface JRFillExpressionEvaluator
expression
- the expression to evaluateevaluation
- the evaluation type; usually directly passed from
FillComponent.evaluate(byte)
JRException
public JRFillDataset getFillDataset()
JRFillExpressionEvaluator
getFillDataset
in interface JRFillExpressionEvaluator
public JRComponentElement getComponentElement()
FillContext
getComponentElement
in interface FillContext
public int getElementSourceId()
FillContext
getElementSourceId
in interface FillContext
JRPrintElement.getSourceElementId()
public JROrigin getElementOrigin()
FillContext
getElementOrigin
in interface FillContext
getElementOrigin
in class JRFillElement
public int getElementPrintY()
FillContext
getElementPrintY
in interface FillContext
public JRStyle getElementStyle()
FillContext
getElementStyle
in interface FillContext
public void registerDelayedEvaluation(JRPrintElement printElement, EvaluationTimeEnum evaluationTime, String evaluationGroup)
FillContext
registerDelayedEvaluation
in interface FillContext
printElement
- the print elementevaluationTime
- the delayed evaluation time; one of
evaluationGroup
- the evaluation group name, if
evaluationTime
is EvaluationTimeEnum.GROUP
FillComponent.evaluateDelayedElement(JRPrintElement, byte)
public Locale getReportLocale()
FillContext
getReportLocale
in interface FillContext
JRParameter.REPORT_LOCALE
public ResourceBundle getReportResourceBundle()
FillContext
getReportResourceBundle
in interface FillContext
JRReport.getResourceBundle()
,
JRParameter.REPORT_RESOURCE_BUNDLE
public TimeZone getReportTimezone()
FillContext
getReportTimezone
in interface FillContext
JRParameter.REPORT_TIME_ZONE
public JRBaseFiller getFiller()
FillContext
getFiller
in interface FillContext
getFiller
in class JRFillElement
public FillContainerContext getFillContainerContext()
getFillContainerContext
in interface FillContext
Copyright © 2013. All Rights Reserved.