|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.component.BaseFillComponent
public abstract class BaseFillComponent
A base abstract implementation of a fill component.
Field Summary | |
---|---|
protected int |
elementId
|
protected FillContext |
fillContext
The fill context, as set by initialize(FillContext) . |
Constructor Summary | |
---|---|
BaseFillComponent()
|
Method Summary | ||
---|---|---|
protected
|
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 java.lang.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. |
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.component.FillComponent |
---|
evaluate, fill, prepare |
Field Detail |
---|
protected FillContext fillContext
initialize(FillContext)
.
protected int elementId
Constructor Detail |
---|
public BaseFillComponent()
Method Detail |
---|
public void initialize(FillContext fillContext)
FillComponent
This method is called before the fill component is used.
initialize
in interface FillComponent
fillContext
- the fill contextprotected final java.lang.Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression
- the expression to evaluateevaluation
- the evaluation type
JRException
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
UnsupportedOperationException
.
If a component supports delayed evaluation, it needs to override this method.
evaluateDelayedElement
in interface FillComponent
element
- the print element for which delayed evaluation has
been registeredevaluation
- the evaluation type
JRException
FillComponent.evaluate(byte)
public void rewind()
Override this method if something needs to be done on component rewind.
rewind
in interface FillComponent
protected <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 deduplicate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |