|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FillHandle
Interface implemented by classes that are used to perform report filling asychronously.
An instance of this type can be used as a handle to an asychronous fill process. The main benefit of this method is that the filling process can be cancelled.
Method Summary | |
---|---|
void |
addFillListener(FillListener listener)
Adds a fill listener to the filling process. |
void |
addListener(AsynchronousFilllListener listener)
Adds a listener to the filling process. |
void |
cancellFill()
Cancels the fill started by the handle. |
boolean |
isPageFinal(int pageIdx)
Determines wheter a page generated by the fill process is final or not. |
boolean |
removeListener(AsynchronousFilllListener listener)
Removes a listener from the filling process. |
void |
startFill()
Starts the filling process asychronously. |
Method Detail |
---|
void addListener(AsynchronousFilllListener listener)
listener
- the listener to be addedboolean removeListener(AsynchronousFilllListener listener)
listener
- the listener to be removed
void addFillListener(FillListener listener)
listener
- the listener to addvoid startFill()
The filling can be launched on a new thread and the method exits after the execution is started.
When the filling finishes either in success or failure, the listeners are notified.
void cancellFill() throws JRException
The method sends a cancel signal to the filling process. When the filling process will end, the listeners will be notified that the filling has been cancelled.
JRException
boolean isPageFinal(int pageIdx)
pageIdx
- the page index
FillListener.pageUpdated(JasperPrint, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |