public class SortComponentFill extends BaseFillComponent
elementId, fillContext, printElementOriginator
Constructor and Description |
---|
SortComponentFill(SortComponent sortComponent) |
Modifier and Type | Method and Description |
---|---|
protected void |
copy(JRGenericPrintElement printElement) |
JRFillCloneable |
createClone(JRFillCloneFactory factory) |
void |
evaluate(byte evaluation)
Evaluates the fill component.
|
void |
evaluateDelayedElement(JRPrintElement element,
byte evaluation)
The default implementation throws
UnsupportedOperationException . |
protected void |
evaluateSortComponent(byte evaluation) |
JRPrintElement |
fill()
Fills the component by creating a print element which will be included
in the generated report.
|
protected FilterTypesEnum |
getFilterType() |
protected SortComponent |
getSortComponent() |
protected boolean |
isEvaluateNow() |
FillPrepareResult |
prepare(int availableHeight)
Prepares to fill the component by deciding whether the component will
print, and how much vertical space it will require.
|
deduplicate, evaluateExpression, initialize, rewind
public SortComponentFill(SortComponent sortComponent)
protected SortComponent getSortComponent()
protected boolean isEvaluateNow()
public void evaluate(byte evaluation) throws JRException
FillComponent
This method would evaluate the component expressions and store the
results to be used in FillComponent.fill()
.
If the component needs to delay the evaluation of some of its
expressions, it would call
FillContext.registerDelayedEvaluation(JRPrintElement, EvaluationTimeEnum, String)
to register a delayed evaluation print element, and perform the delayed
evaluations on FillComponent.evaluateDelayedElement(JRPrintElement, byte)
.
evaluation
- the evaluation typeJRException
FillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)
protected void evaluateSortComponent(byte evaluation) throws JRException
JRException
public JRPrintElement fill()
FillComponent
This method will get called only if FillComponent.prepare(int)
returned
a result that indicated that the component will print.
public FillPrepareResult prepare(int availableHeight)
FillComponent
availableHeight
- the amount of vertical space available for the
component, starting from the top of the component element.public JRFillCloneable createClone(JRFillCloneFactory factory)
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
BaseFillComponent
UnsupportedOperationException
.
If a component supports delayed evaluation, it needs to override this method.
evaluateDelayedElement
in interface FillComponent
evaluateDelayedElement
in class BaseFillComponent
element
- the print element for which delayed evaluation has
been registeredevaluation
- the evaluation typeJRException
FillComponent.evaluate(byte)
protected void copy(JRGenericPrintElement printElement)
protected FilterTypesEnum getFilterType()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com