public abstract class BaseFillComponent extends Object implements FillComponent
| Modifier and Type | Field and Description |
|---|---|
protected int |
elementId
Deprecated.
replaced by
printElementOriginator |
protected FillContext |
fillContext
The fill context, as set by
initialize(FillContext). |
protected PrintElementOriginator |
printElementOriginator |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseFillComponent() |
protected |
BaseFillComponent(BaseFillComponent fillComponent,
JRFillCloneFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends Deduplicable> |
deduplicate(T object)
Deduplicates an object by looking for an identical one that's already
present in the fill context.
|
void |
evaluateDelayedElement(JRPrintElement element,
byte evaluation)
The default implementation throws
UnsupportedOperationException. |
protected Object |
evaluateExpression(JRExpression expression,
byte evaluation)
Evaluates an expression.
|
void |
initialize(FillContext fillContext)
Initializes the fill component with the fill context.
|
void |
rewind()
The default implementation is empty.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluate, fill, prepareprotected FillContext fillContext
initialize(FillContext).protected PrintElementOriginator printElementOriginator
protected int elementId
printElementOriginatorprotected BaseFillComponent()
protected BaseFillComponent(BaseFillComponent fillComponent, JRFillCloneFactory factory)
public void initialize(FillContext fillContext)
FillComponentThis method is called before the fill component is used.
initialize in interface FillComponentfillContext - the fill contextprotected final Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression - the expression to evaluateevaluation - the evaluation typeJRExceptionpublic void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
UnsupportedOperationException.
If a component supports delayed evaluation, it needs to override this method.
evaluateDelayedElement in interface FillComponentelement - the print element for which delayed evaluation has
been registeredevaluation - the evaluation typeJRExceptionFillComponent.evaluate(byte)public void rewind()
Override this method if something needs to be done on component rewind.
rewind in interface FillComponentprotected <T extends Deduplicable> T deduplicate(T object)
element templates
in order to prevent creation of a large number of identical instances.object - the object to deduplicateCopyright © 2017. All rights reserved.