public class JRFillComponentElement extends JRFillElement implements JRComponentElement, FillContext
JRComponentElement which is used during report fill.band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, expressionEvaluator, fillContainerContext, filler, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, styleProviders, templatesPROPERTY_COMPONENT_NAME| 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.
|
JRComponentElement |
getParent() |
PrintElementOriginator |
getPrintElementOriginator()
Returns a generator for print Ids for the component element.
|
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() |
protected void |
setBand(JRFillBand band) |
void |
setConditionalStylesContainer(JRFillElementContainer conditionalStylesContainer) |
protected void |
setStretchHeight(int stretchHeight) |
void |
visit(JRVisitor visitor) |
_moveDependantElements, _stretchElement, _stretchElementToHeight, addDependantElement, addDynamicProperty, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, delayedEvaluate, delayedEvaluationUpdatesTemplate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, evaluateStyle, getBackcolor, getBand, getCollapsedHeightAbove, getCollapsedHeightBelow, getConditionalStylesContainer, getDefaultStyleProvider, getDependantElements, getDynamicProperties, getElementGroup, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getForecolor, getGroupElements, getHeight, getInitStyle, getKey, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrepareHeight, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getTemplate, getUUID, getVariable, getWidth, getX, getY, hasDynamicProperties, hasDynamicProperty, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, initStyleProviders, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, registerTemplate, reset, setAlreadyPrinted, setBackcolor, setCollapsedHeightAbove, setCollapsedHeightBelow, setCurrentEvaluation, setExpressionEvaluator, setForecolor, setHeight, setMode, setOriginProvider, setPositionType, setPrepareHeight, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setWidth, setX, setY, stretchElement, stretchElementToContainer, stretchElementToElementGroup, stretchElementToHeight, stretchHeightFinal, transferProperties, transferPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXclonegetBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetDefaultStyleProviderpublic JRFillComponentElement(JRBaseFiller filler, JRComponentElement element, JRFillObjectFactory factory)
public JRFillComponentElement(JRFillComponentElement element, JRFillCloneFactory factory)
protected void setBand(JRFillBand band)
setBand in class JRFillElementprotected void evaluate(byte evaluation)
throws JRException
evaluate in class JRFillElementJRExceptionprotected boolean prepare(int availableHeight,
boolean isOverflow)
throws JRException
prepare in class JRFillElementJRExceptionprotected void setStretchHeight(int stretchHeight)
setStretchHeight in class JRFillElementpublic void setConditionalStylesContainer(JRFillElementContainer conditionalStylesContainer)
setConditionalStylesContainer in class JRFillElementprotected JRPrintElement fill() throws JRException
fill in class JRFillElementJRExceptionprotected JRTemplateElement createElementTemplate()
createElementTemplate in class JRFillElementprotected void resolveElement(JRPrintElement element, byte evaluation, JREvaluationTime evaluationTime) throws JRException
JRFillElementresolveElement in class JRFillElementelement - the elementevaluation - the evaluation typeevaluationTime - the current evaluation timeJRExceptionprotected void resolveElement(JRPrintElement element, byte evaluation) throws JRException
JRFillElementresolveElement in class JRFillElementelement - the elementevaluation - the evaluation typeJRExceptionprotected void rewind()
throws JRException
rewind in class JRFillElementJRExceptionpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void visit(JRVisitor visitor)
visit in interface JRVisitablepublic JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneablecreateClone in interface JRFillCloneablefactory - the clone factory to use while creating the clonepublic JRComponentElement getParent()
getParent in class JRFillElementpublic Component getComponent()
JRComponentElementgetComponent in interface JRComponentElementpublic ComponentKey getComponentKey()
JRComponentElementThe component type key needs to be set in order to locate the component manager.
getComponentKey in interface JRComponentElementpublic Object evaluate(JRExpression expression, byte evaluation) throws JRException
FillContextevaluate in interface FillContextevaluate in interface JRFillExpressionEvaluatorexpression - the expression to evaluateevaluation - the evaluation type; usually directly passed from
FillComponent.evaluate(byte)JRExceptionpublic JRFillDataset getFillDataset()
JRFillExpressionEvaluatorgetFillDataset in interface JRFillExpressionEvaluatorpublic JRComponentElement getComponentElement()
FillContextgetComponentElement in interface FillContextpublic int getElementSourceId()
FillContextgetElementSourceId in interface FillContextJRPrintElement.getSourceElementId(),
FillContext.getPrintElementOriginator()public PrintElementOriginator getPrintElementOriginator()
FillContextgetPrintElementOriginator in interface FillContextJRPrintElement.getSourceElementId(),
JRPrintElement.getPrintElementId()public JROrigin getElementOrigin()
FillContextgetElementOrigin in interface FillContextgetElementOrigin in class JRFillElementpublic int getElementPrintY()
FillContextgetElementPrintY in interface FillContextpublic JRStyle getElementStyle()
FillContextgetElementStyle in interface FillContextpublic void registerDelayedEvaluation(JRPrintElement printElement, EvaluationTimeEnum evaluationTime, String evaluationGroup)
FillContextregisterDelayedEvaluation in interface FillContextprintElement - the print elementevaluationTime - the delayed evaluation time; one of
evaluationGroup - the evaluation group name, if
evaluationTime is EvaluationTimeEnum.GROUPFillComponent.evaluateDelayedElement(JRPrintElement, byte)public Locale getReportLocale()
FillContextgetReportLocale in interface FillContextJRParameter.REPORT_LOCALEpublic ResourceBundle getReportResourceBundle()
FillContextgetReportResourceBundle in interface FillContextJRReport.getResourceBundle(),
JRParameter.REPORT_RESOURCE_BUNDLEpublic TimeZone getReportTimezone()
FillContextgetReportTimezone in interface FillContextJRParameter.REPORT_TIME_ZONEpublic JRBaseFiller getFiller()
FillContextgetFiller in interface FillContextgetFiller in class JRFillElementpublic FillContainerContext getFillContainerContext()
getFillContainerContext in interface FillContextCopyright © 2017. All rights reserved.