| java.lang.Object net.sf.jasperreports.engine.fill.AsynchronousFillHandle
AsynchronousFillHandle | public class AsynchronousFillHandle (Code) | | Class 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.
author: Lucian Chirita (lucianc@users.sourceforge.net) version: $Id: AsynchronousFillHandle.java 1440 2006-10-19 09:01:06Z lucianc $ |
Inner Class :protected class ReportFiller implements Runnable | |
cancelled | protected boolean cancelled(Code) | | |
parameters | final protected Map parameters(Code) | | |
running | protected boolean running(Code) | | |
started | protected boolean started(Code) | | |
addListener | public void addListener(AsynchronousFilllListener listener)(Code) | | Adds a listener to the filling process.
Parameters: listener - the listener to be added |
cancellFill | public void cancellFill() throws JRException(Code) | | Cancels the fill started by the handle.
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.
throws: JRException - |
notifyCancel | protected void notifyCancel()(Code) | | |
removeListener | public boolean removeListener(AsynchronousFilllListener listener)(Code) | | Removes a listener from the filling process.
Parameters: listener - the listener to be removed true if the listener was found and removed |
setPriority | public void setPriority(int priority)(Code) | | Sets the priority of the filler thread.
Parameters: priority - the filler thread priority. See Also: Thread.setPriority(int) |
startFill | public void startFill()(Code) | | Starts the filling process asychronously.
The filling is launched on a new thread and the method exits
after the thread is started.
When the filling finishes either in success or failure, the listeners
are notified.
|
|
|